Table If and Vlookup

craig80

Board Regular
Joined
May 18, 2010
Messages
51
Hello,

I have a table of data, which is updated daily. This is a full upload, not delta. Against each line i have formula for various status, which are then returned in Pivot tables. All works well for the Business i am in. But i need to enter a IF combined with a VLOOKUP. I have not had a problem in the past. However can't get past this one.

I use Named Ranges normally, but i had no luck at all with these, so i have replaced them with fixed ranges, as you can see below.

=IF([@[MU_NO]]<>Control!$G$2:$G$74,[@[Planner Group Desc '[D&R']]],VLOOKUP([@[MU_NO]],Control!$G$1:$J$74,2,FALSE))

The problem i am having with the above, it would appear that the formula is only work for as many row in the table as there are rows in the VLOOKUP table. (73) i have tried removing all names, even outside of my table. But still no luck.

If anyone has any advice, i would be very grateful.

Thanks

Craig
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
I am not sure what this part is

=IF([@[MU_NO]]<>Control!$G$2:$G$74

you seem to be comparing a singe item to a range..is that the case?
 
Upvote 0
Hello,

Without the table and range references. It would look like this.

=IF(A4<>E2:E75, B4, Vlookup(A4, E2:H75,2,False))

It is correct, i am trying to find a single item in that range?

Thanks

Craig
 
Upvote 0

Forum statistics

Threads
1,223,230
Messages
6,170,883
Members
452,364
Latest member
springate

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