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!
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Set the start/end row, like:

vlookup(D7,'2017'!A1:G100,7,).
 
Upvote 0
the vlookup on its own was functioning fine.
i had also used it with the iferror, like so...

=IFERROR(VLOOKUP(D7,'2017'!A:G,7,),"-")
 
Upvote 0
Try this:

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

 
Last edited:
Upvote 0
the only way your formula returns 0 is if W7 value = 0 or vlookup returns 0 (D7 value in A column corresponds to 0 value in G column in 2017 sheet).
 
Last edited:
Upvote 0
I'll try again, as my posts seem to have been missed.

Try this:

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

Forum statistics

Threads
1,215,692
Messages
6,126,230
Members
449,303
Latest member
grantrob

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