Ignoring N/A

cynster76

New Member
Joined
Mar 17, 2011
Messages
18
How would I ignore the N/As in the below formula?

Thanks.

=((160.5/D3)*1/3)+((80.5/G3)*1/3)+((15.5%/J3)*1/3)
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
Hi Aladin,

I actually changed it all to N/A. Some had #VALUE others #N/A. How would I get the formula to ignore the non-numbers?

Thanks,
Cynthia
 
Upvote 0
Actually, I meant to say that the one or 3 (in bold), could end up with no value because of missing data. I want the formula to calculate based on the other 2.

How would I go about doing this?

=((160.5/D3)*1/3)+((80.5/G3)*1/3)+((15.5%/J3)*1/3)
 
Upvote 0
Multiplying by 1/3 is the same as dividing by 3, so I did change that:

=(IF(AND(D3,ISNUMBER(D3)),(160.5/D3)/3))+IF(AND(G3,ISNUMBER(G3)),((80.5/G3)/3))+(IF(AND(J3,ISNUMBER(J3)),(15.5%/J3)/3))
 
Upvote 0
Really its the value of D3, G3 or J3 causing the #N/A. The rest are hard coded numbers. Your statement would start with something like this

=IF(ISERR((160.5/D3)*(1/3)),0,(160.5/D3)*(1/3))

This is only a third of your statement and they are separated with plus signs. Also in your statement you write

*1/3

This means multiply by 1 and then divide by 3. I'm guessing you are wanting to multiply by one-third. You'll need brackets around 1/3 to do that. Otherwise there is no point in multiplying by 1.
 
Upvote 0
Actually, I meant to say that the one or 3 (in bold), could end up with no value because of missing data. I want the formula to calculate based on the other 2.

How would I go about doing this?

=((160.5/D3)*1/3)+((80.5/G3)*1/3)+((15.5%/J3)*1/3)

Why do we have a percentage as nominator in:

15.5%/J3

while other parts are different?
 
Upvote 0
Thanks HOTPEPPER, the formula worked. Rhino/Aladin, appreciate your assistance as well.

Have a great day!
 
Upvote 0
Actually, I meant to say that the one or 3 (in bold), could end up with no value because of missing data. I want the formula to calculate based on the other 2.

How would I go about doing this?

=((160.5/D3)*1/3)+((80.5/G3)*1/3)+((15.5%/J3)*1/3)

I'd say its just a typo as the percentile is the number 5 key and the slash is right next to the shift.

In that case:

=(1/3)*SUM(IF(N(D3),160.5/D3),IF(N(G3),80.5/G3),IF(N(J3),15.5/J3))

would also the job.
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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