Vlookup

  • Thread starter Thread starter Katerinia
  • Start date Start date
K

Katerinia

COL of codes in A (full List of codes of about 2,000)
COL of codes in B (selection of COL A codes of about 850)

IF COL B code matches COLUMN A code, then true, else false
 
Hi,

in C1 enter

=IF(SUMPRODUCT(--(B1=$A$1:$A$2000))>0,"True","False")

copy formula down
 
I need to basically widdle away data in a worksheet, using the criterial of
same codes. Col A is the full list of codes followed by data relating to it.
I dont need all these rows of data, i only need the data that correlates
wtih matching codes from a shorter list currently in Col B.
 
Hi,
column B in another sheet?, could you post an example on how your data looks
like and what do you want to get, thanks
 
In worsheet JOB_CODES
C1 C2 C3
JOBCODE EFFDT DESCR DESCRSHORT
414096 1011906 DSC VP - REFINERY OPERATIONS DSCVPREFOP
414116 1011906 DSC GEN'L COUNSEL & SECTY DSCGENCNS
414126 1011906 TLNAS PRESIDENT TLNAS PRES
414146 1011906 DSC VP & AST TO PRS-GOV REL DSC GOVREL
415016 1011906 DSC DIRECTOR - INFO TECH&PLNG DIS DIR IT
415026 1011906 DSC VP - SALES DSC VP SLS


The only need to keep certain data rows which are listed in another
worksheet: "CODESNEEDED"

NEEDEDCODES
123500
410013
410014
410023
410227
410407

How can I mark worksheet Job_CODES so I can run a filter and delete the rows
I dont need the info.
 
Hi Katerinia,
in another column enter

=INDEX(CODESNEEDED!$A$1:$A$5,MATCH(C1,CODESNEEDED!$A$1:$A$5,0))

I assume that the code in sheet job_codes are in C starting in row 1
If the code is not in the other sheet it will bring #N/A
then filter the column by #N/A, higlight the rows, right click on the mouse,
delete
then go back to the filter and select all
 
You could insert a new (temporary) column B (it's nice to be close to the column
with the data) and use a formula like:

=isnumber(match(a2,'codesneeded'!a:a,0))
(and drag down the column.)

You'll see True if there's a match and False if there is no match.

Convert to values by
selecting column B
edit|copy
edit|paste special|values
(It'll make things quicker.)

Then either filter to show the False's and delete the visible rows (and then
show all data) -- or sort by column B and delete the rows with False in that
column.

Then delete column B.
 
Back
Top