#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Vlookup

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Vlookup

Hi,

in C1 enter

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

copy formula down

"Katerinia" wrote:

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

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Vlookup

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.

"Katerinia" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Vlookup

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

"Katerinia" wrote:

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.

"Katerinia" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Vlookup

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.


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Vlookup

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



"Katerinia" wrote:

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.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Vlookup

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.

Katerinia wrote:

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.


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
If (Vlookup 0) working, but what if Vlookup cell does not exist Steve Excel Worksheet Functions 18 November 18th 09 07:33 PM
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM


All times are GMT +1. The time now is 12:21 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"