IF and ISNUMBER problem

Ekstamm

New Member
Joined
Jul 21, 2011
Messages
19
Im struggling with a formula and I can not find the answer on google.

I have a VLOOKUP funktion that I want to write out depending if some cells have values or not.

the VLOOKUP get a watt(electrical) value for a fixture. and I want this to depend on how many fixtures I patch.

so:

G8 will get VLOOKUP(F8;'Fixture List'!A:B;2;0)
But I want it to write out The VLOOKUP value as 0,00 if J8+L8+N8+P8 is blank.
And when Only J8 has a value I want it to write VLOOKUP value as it is
When J8+L8 has a value I want VLOOKUP value *2
when J8+L8+N8 has a value I want VLOOKUP value *3
when J8+L8+N8+P8 has a value I want VLOOKIP vale *4

I get it to work for only J8 with formulra:
=IF(ISNUMBER(J8);VLOOKUP(F8;'Fixture List'!A:B;2;0);0)

Help me please. I can not get around it.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I solved the problem, but It must be an easier way to do it.
This is the formula I used to get it to work:

=IF(ISNUMBER(P8/P8/N8/L8/J8);4*VLOOKUP(F8;'Fixture List'!A:B;2;0);IF(ISNUMBER(P8/N8/L8/J8);3*VLOOKUP(F8;'Fixture List'!A:B;2;0);IF(ISNUMBER(N8/L8/J8);2*VLOOKUP(F8;'Fixture List'!A:B;2;0);IF(ISNUMBER(J8);VLOOKUP(F8;'Fixture List'!A:B;2;0);0))))
 
Upvote 0
Im struggling with a formula and I can not find the answer on google.

I have a VLOOKUP funktion that I want to write out depending if some cells have values or not.

the VLOOKUP get a watt(electrical) value for a fixture. and I want this to depend on how many fixtures I patch.

so:

G8 will get VLOOKUP(F8;'Fixture List'!A:B;2;0)
But I want it to write out The VLOOKUP value as 0,00 if J8+L8+N8+P8 is blank.
And when Only J8 has a value I want it to write VLOOKUP value as it is
When J8+L8 has a value I want VLOOKUP value *2
when J8+L8+N8 has a value I want VLOOKUP value *3
when J8+L8+N8+P8 has a value I want VLOOKIP vale *4

I get it to work for only J8 with formulra:
=IF(ISNUMBER(J8);VLOOKUP(F8;'Fixture List'!A:B;2;0);0)

Help me please. I can not get around it.
Maybe something like this...

=COUNTA(J8;L8;N8;P8)*VLOOKUP(F8;'Fixture List'!A:B;2;0)
 
Upvote 0
Hi
Welcome to the board

Please always post your excel version.

If you have excel 2007 or later, check IFERROR()
 
Upvote 0
Well that was a lot easier. How do I get the G8 Cell to be blank if value is #N/A?
Try one of these...

This one will work in EVERY version of Excel:

=IF(ISNA(MATCH(F8;'Fixture List'!A:A;0));"";COUNTA(J8;L8;N8;P8)*VLOOKUP(F8;'Fixture List'!A:B;2;0))

This one will work in Excel 2007 and later:

=IFERROR(COUNTA(J8;L8;N8;P8)*VLOOKUP(F8;'Fixture List'!A:B;2;0);"")
 
Upvote 0

Forum statistics

Threads
1,224,527
Messages
6,179,337
Members
452,907
Latest member
Roland Deschain

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