IF and IFERROR in same formula?

thanan

New Member
Joined
Feb 17, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
  2. Web
I am trying to use IFERROR and IF functions within the same formula but I am unsure why I do not get the results I need.
Cell B4 contains a date, so I am unsure if that may be the issue.

=IFERROR(IF('Sheet2'!B4>0,'Sheet2'!B4+30),"REPAIR")

Whenever I write that formula and I have a date in there the value returned is 44594 instead of the date + 30.

Please advise. Thank you so much for your help.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Welcome to the Board!

It is important to understand how Excel stores dates.
Excel stores dates as numbers, specifically the number of days since 1/0/1900 (you can easily see this by changing the format on a date cell to "General").
So all that dates are in Excel is numbers with special formatting.

If you see a value like 44594, then the cell is probably formatted as General, and you just need to change it to use a Date format.
 
Upvote 0
Solution
I forgot that simple yet important detail! Thank you so much.
 
Upvote 0
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,378
Members
448,955
Latest member
BatCoder

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