Lost with nested ifs and vlookup and or statement

tassie

Board Regular
Joined
Apr 5, 2004
Messages
179
Hi Guys

This formula work ok.
IF(ROUND(VLOOKUP(B16,prev,3,0)*1.1,2)<>E16,"C","")

The challenge I am having is how to go about including another
3 vlookups with an OR function statement.

If rounded vlookups ne E16 OR F17 OR F18 OR F19 then "C" else null

Appreciate some feedback

Regards,

Tassie :oops:
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
tassie said:
Hi Guys

This formula work ok.
IF(ROUND(VLOOKUP(B16,prev,3,0)*1.1,2)<>E16,"C","")

The challenge I am having is how to go about including another
3 vlookups with an OR function statement.

If rounded vlookups ne E16 OR F17 OR F18 OR F19 then "C" else null

Appreciate some feedback

Regards,

Tassie :oops:

What are those 3 Vlookup's and their relation with E16, F17:F19?
 
Upvote 0
Hi Aladin,

From column A I would like to test if any of the four prices EG l2,l5,l8 or L9
do not equal the products previous 4 prices which I save in a named range
called PREV.

=IF(ROUND(VLOOKUP(B11,prev,3,0)*1.1,2)<>E11,"C","")
=IF(ROUND(VLOOKUP(B11,prev,4,0)*1.1,2)<>E12,"C","")
=IF(ROUND(VLOOKUP(B11,prev,5,0)*1.1,2)<>E13,"C","")
=IF(ROUND(VLOOKUP(B11,prev,6,0)*1.1,2)<>E14,"C","")

Hope this helps

Thanks for taking the time.
Tassie,
 
Upvote 0
tassie said:
...

From column A I would like to test if any of the four prices EG l2,l5,l8 or L9
do not equal the products previous 4 prices which I save in a named range
called PREV.

=IF(ROUND(VLOOKUP(B11,prev,3,0)*1.1,2)<>E11,"C","")
=IF(ROUND(VLOOKUP(B11,prev,4,0)*1.1,2)<>E12,"C","")
=IF(ROUND(VLOOKUP(B11,prev,5,0)*1.1,2)<>E13,"C","")
=IF(ROUND(VLOOKUP(B11,prev,6,0)*1.1,2)<>E14,"C","")
...

Not sure but try:

=IF(SUM(ISNA(MATCH(VLOOKUP(B11,prev,{3,4,5,6},0)*1.1,2),E11:E14,0))+0),"C","")

which must be confirmed with control+shift+enter, not just with enter.
 
Upvote 0
Hi Aladin,

You certainly have me thinking outside my current capability with your suggestion.

It doesn't work... looking at seems a round bracket is missing and not sure where your logic needs it to be.

Question.

Is this replacing 4 vlookups and an OR function?
If so..**** powerful

And with the F2 ctrl+shift+enfer create an array?

Curious...

Tassie :-?
 
Upvote 0
tassie said:
Hi Aladin,

You certainly have me thinking outside my current capability with your suggestion.

It doesn't work... looking at seems a round bracket is missing and not sure where your logic needs it to be.

Forgot that bit...

=IF(SUM(ISNA(MATCH(ROUND(VLOOKUP(B11,prev,{3,4,5,6},0)*1.1,2),E11:E14,0))+0),"C","")

Question.

Is this replacing 4 vlookups and an OR function?
If so..**** powerful

Yes.

And with the F2 ctrl+shift+enfer create an array?

Curious...

Tassie :-?

Just control+shift+enter instead of just enter.
 
Upvote 0
Hi Aladin,

Works beautifully...
Very powerful still getting a handle on how the array works.
Defintely will be using more in the future

Appreciate your time

Thanks

Tassie :-P
 
Upvote 0

Forum statistics

Threads
1,222,441
Messages
6,166,050
Members
452,010
Latest member
triangle3

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