help needed with complicated multiple IF summation

strewth78

New Member
Joined
Jan 21, 2017
Messages
15
I want to look into cell W7. If it is a number, then show that number.
if not, then i want to do a vlookup(D7,'2017'!A:G,7,).
However if there is no number in that vlookup, then go back to W7...
if W7 says 'pre-arb' then display number 535000.
if it doesnt say pre-arb, then display '-'

here is what ive tried...

=IF(ISNUMBER(W7),W7,IFERROR(VLOOKUP(D7,'2017'!A:G,7,),IF(W7="pre-arb",535000,"-")))

I can see it gets stuck after the isnumber function. so if there is a number in W7 it produces it, if not it returns zero. Im sure im just messing up the iferror part somehow, but ive become lost at what it is... probably something simple.

any help? much appreciated!
 
Thanks.

I took what you suggested and then just modified the statement to the last IF function. That way if it returns zero or fails to find a result in the vlookup it moves to thefinal IF function.

=IF(ISNUMBER(W7),W7,IFERROR(IF(VLOOKUP(D7,'2017'!A:G,7,)=0,IF(W7="pre-arb",535000),VLOOKUP(D7,'2017'!A:G,7,)),IF(W7="pre-arb",535000,"-")))


Thanks again to all the help from this thread.
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,216,134
Messages
6,129,070
Members
449,485
Latest member
greggy

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