Nested If, Multiple Nested If, IsError

Rosstamon

Board Regular
Joined
Sep 12, 2007
Messages
77
Hello,
I'm stuck here.
Column G is people's names, columns I and J are dates, the formula I’m writing is in column R.

My desired end result is:

If column G contains the name “Ed”, column R should say “N/A”. However, if column G contains a name that is NOT "Ed" AND there are dates in columns I and J then do the math, I – J (I minus J). If there's a date in either column but not both columns, then column R should remain blank. And finally, when the same date is in both columns (I & J) return a result of "0.00".

I have the following formula in column R of my spreadsheet.
=IF(ISERROR(IF(OR(G70="Ed"),"N/A",IF(G70<>"Ed",I70-J70,""))),"",IF(OR(G70="Ed"),"N/A",IF(G70<>"Ed",I70-J70,IF(OR(I70="",J70=""),"",))))

What’s happening is,
- if columns I and J are empty, I get the answer 0.00
- if there is a date in column I but not J I get the spreadsheet representation of that date, i.e. 41607 for November 29, 2013

In both cases, I would like the cell in column R to remain blank
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
I think this should do it:
Code:
=IF(G70="Ed","N/A",IF(OR(I70=0,J70=0),"",I70-J70))
 
Upvote 0
I think this should do it:
Code:
=IF(G70="Ed","N/A",IF(OR(I70=0,J70=0),"",I70-J70))

Joe4 - I am once again indebted to your brilliance. Can't thank you enough. Your formula was so much easier than I was making it. Not sure how to get to your level, but hope to one day make it there. Thanks again. Have a super day.
 
Upvote 0
Joe4 - I am once again indebted to your brilliance. Can't thank you enough. Your formula was so much easier than I was making it. Not sure how to get to your level, but hope to one day make it there. Thanks again. Have a super day.
Your welcome!
Keep working at it, and one day you'll get there!:)
 
Upvote 0

Forum statistics

Threads
1,215,459
Messages
6,124,948
Members
449,198
Latest member
MhammadishaqKhan

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