Help With IF and V-Lookup on multiple sheets

joegolfdad

New Member
Joined
Nov 9, 2011
Messages
1
I am attempting to create a IF-VLookup functions that crosses multiple sheets. In column I is the type of client, and in column G is the total sales. If the type of client is personal, I need to reference a vlookup table on a different sheet. If the client is corporate, i need to reference another vlookup table on that other sheet that is different than the vlookup table used for personal clients.

My problem is when I attempt to reference the column number on the different sheet. It comes in as sheetname!2, which is invalid.

=IF(I2="Personal",VLOOKUP(SalesHistory[[#Headers],[Total Sales]],ClientClassification!$B$11:$C$13,2,FALSE),VLOOKUP([@[Total Sales]],ClientClassification!$B$19:$C$21,2,FALSE))

That is what I have right now, essentially two nested vlookup functions.

Any help would be greatly appreciated.
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
It looks like that first vlookup has too many arguments in it. I see 4 commas and you should only have 3 to separate the 4 arguments you need. Hope this helps.
 
Upvote 0

Forum statistics

Threads
1,207,280
Messages
6,077,508
Members
446,287
Latest member
tjverdugo85

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top