give N/A value

ApolloShine

New Member
Joined
Jun 23, 2015
Messages
8
I am trying to add a formula that will give "n/a" in a cell a value based on info in header.

The formula i found in google forum is

=sum(arrayformula(if(C9:C33="N/A",value(mid(B9:B33,2,search(")",B9:B33)-2)),C9:C33)))

But results in error. Below is what my spreadsheet looks like.

https://docs.google.com/spreadsheets/d/1mPEt1lHTSsbvpIJCioantkJtQAjZL1JbPXeTLfjSDyc/edit?usp=sharing

This is the link to where i got the formula.

https://docs.google.com/spreadsheets/d/1mAQ2AvCQAJHF4EhRc5t8r33fVTJWl6TLmmAQcJNGf2o/edit?usp=sharing


Thanks for all the help in advance :)
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
I think your formula in C38 is mistakenly using column B in the VALUE and MID functions; it should be looking at A9:A33, not B9:B33. This kind of thing happens when one creates formulas with relative references instead of absolute references and then copies the formulas to other columns or rows.
 
Upvote 0
I think your formula in C38 is mistakenly using column B in the VALUE and MID functions; it should be looking at A9:A33, not B9:B33. This kind of thing happens when one creates formulas with relative references instead of absolute references and then copies the formulas to other columns or rows.


Oops that was a typo.

=SUM(arrayformula(IF(C9:C33="N/A",VALUE(MID(A9:A33,2,SEARCH(")",A9:A33)-2)),C9:C33)))

but when entered in excel 2010 it comes up as #NAME?
 
Upvote 0
Well, your exemplar was not done in Excel, it was done in that googly thing. "Arrayformula" is not an Excel function. Which program do you want to use?
 
Upvote 0

Forum statistics

Threads
1,223,927
Messages
6,175,441
Members
452,641
Latest member
Arcaila

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