LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default If(vlookup statement

If you are looking for the value in the 4th column that matches one of the
values of the first 3 columns this should work.
Your table is in A1:D20
The value you are looking vor is in F6, the formulas are in F7:F9
Of course you can merge them in a single formula, replacing F7 in the last
formula with VLOOKUP(F6,A1:D20,4,), etc.

Value you are looking for
=VLOOKUP(F6,A1:D20,4,)
=VLOOKUP(F6,B1:D20,3,)
=VLOOKUP(F6,C1:D20,2,)
=IFERROR(F7,IFERROR(F8,IFERROR(F9,"Part 1 - Other")))


"Nikki" wrote:

I have three columns that I need to return a vlookup value.

A B C
8 2 PSS

I want to lookup column A in my table to return the name, if not then lookup
B and return the name, if not then lookup C, otherwise give me "Part 1 -
Other". In this case none of A, B, or C is found so my result should be "Part
1 - Other". My lookup table is below:

CLASSIFIERID GENERICATTRIBUTE1 GENERICATTRIBUTE2
ANH Part_4 Athena Part_4 Athena
21 Part_4 Specialty Part_4 Specialty
24 Part_4 Specialty Part_4 Specialty
CR Part_4 Specialty Part_4 Specialty
EVN Part_4 Specialty Part_4 Specialty
PMY Part_4 Specialty Part_4 Specialty
19 Part_4 Specialty Part_4 Specialty
GMT Part_4 Specialty Part_4 Specialty
11 Part_1 Select Part_1 Select
3 Part_3 Equip Part_3 Equip
PS Part_1 Select Part_1 Select
9 Part_1 BLD Part_1 BLD
MAL Part_1 PSP Part_1 PSP
MMM Part_1 PSP Part_1 PSP
WA Part_1 PSP Part_1 PSP
BMI Part_1 PSP Part_1 PSP
DJO Part_1 PSP Part_1 PSP
KEN Part_1 PSP Part_1 PSP
AEP Part_1 PSP Part_1 PSP



 
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
Help Please with If statement / vlookup Donna Excel Discussion (Misc queries) 9 March 11th 10 08:39 PM
Vlookup, if statement, maybe an and statement Jennifer Excel Discussion (Misc queries) 1 February 26th 10 03:30 AM
if then statement with a vlookup? AwesomeSean Excel Programming 8 December 1st 09 07:23 PM
Using an IF statement, or VLOOKUP statement Tim Williams Excel Programming 0 December 8th 06 09:41 PM
Vlookup with if statement HTC Excel Discussion (Misc queries) 0 November 30th 06 05:58 PM


All times are GMT +1. The time now is 07:08 AM.

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

About Us

"It's about Microsoft Excel"