Formula / Macro Question

Bradley H Callender

Board Regular
Joined
Aug 5, 2010
Messages
120
Is there a formula / macro that can do the following:

if one cell has the value "Not Applicable"
if skips a calculated column and leaves the solution cell empty
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Embedding an If statement in your formula should work. Something like this:

=IF(certain cell = "Not Applicable", "", your regular formula here)
 
Upvote 0
ok Thanks but i don't think this is going to work. here is qiuck example of what i'm doing.

i Have dates in range J1:J357 these dates are they calculated using "=today()-j1" going down in that pattern in range k1:k357 but in range j1:357 some dates are not applicable and in calculating i end up with a "#VALUE!".

SO WHAT DO I USE THEN TO LEAVE THE CELL BLANK RANGE "K1:K357"IF ONE OF THE CELLS IN RANGE "J1:J357" CONTAIN "NOT APPLICABLE"?
 
Upvote 0
=IF(OR(certain cell = "Not Applicable",certain cell = ""),"", your regular formula here)

" " would mean cell has space in it

"" would mean cell is blank
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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