Using lookup functions with an if function

Frazal

New Member
Joined
Jun 6, 2018
Messages
3
Hello,

I'm trying to have a function reference one cell, in this case F762, to see if it says yes. If it does, it will print a value based off the value in G762, using a lookup function I've already proven to work. If the condition is not met, it should use a different lookup function that is also confirmed to work.

Here is my function:

=IF(F762="YES",=LOOKUP(G762,{-9.99999999999999E+307,"";10000,"20";25000,"40";50000,"56";100000,"100";250000,"125";500000,"150";1000000,"200"}),=LOOKUP(G926,{-9.99999999999999E+307,"6";10000,"9";25000,"18";50000,"45";100000,"75";250000,"100";500000,"150";1000000,"200"}))

What am I missing here that prevents this?

Thank you!
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Sorry, error in the code I posted with the second lookup, it's actually:

=IF(F762="YES",=LOOKUP(G762,{-9.99999999999999E+307,"";10000,"20";25000,"40";50000,"56";100000,"100";250000,"125";500000,"150";1000000,"200"}),=LOOKUP(G762,{-9.99999999999999E+307,"6";10000,"9";25000,"18";50000,"45";100000,"75";250000,"100";500000,"150";1000000,"200"}))
 
Upvote 0
Hi,

Since you say your formulas are Proven to work for you, I'm Only correcting your combined formula syntax:


Book1
C
16
Sheet75
Cell Formulas
RangeFormula
C1=IF(F762="YES",LOOKUP(G762,{-9.99999999999999E+307,"";10000,"20";25000,"40";50000,"56";100000,"100";250000,"125";500000,"150";1000000,"200"}),LOOKUP(G762,{-9.99999999999999E+307,"6";10000,"9";25000,"18";50000,"45";100000,"75";250000,"100";500000,"150";1000000,"200"}))
 
Upvote 0
You're welcome, welcome to the forum.
 
Upvote 0

Forum statistics

Threads
1,214,956
Messages
6,122,465
Members
449,085
Latest member
ExcelError

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