Multiple IF/IFERROR nested formulas

RayZor123

New Member
Joined
Aug 31, 2021
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi All,

First time here after getting lots of help over the years, but unfortunately I've gone a bit rusty with my multiple IF formulas.

I need to write a formula to correct some error values in the source data but I cannot get this right. I've made my attempt in the "Manually Corrected Date" column. In the next column I've written the result I need to get. I have 900 lines to correct so hopefully there is an expert out there that can help me.....THANKS

1630425892416.png
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!

Since there are obvious errors in the formulas, we cannot really tell the rules/order you want to apply in each case.
Can you list the conditions, in plain English, of each situation. And remember, order does matter!
 
Upvote 0
There are probably better ways to do this but this should work.
It assumes that if both are #Value to also use Manual.

Book1
HIJ
1Log InLog OutFormula
21/09/2021#DIV/0!1/09/2021
3#DIV/0!1/09/20211/09/2021
41/09/20211/09/20211/09/2021
531/08/20211/09/2021Manual
6#DIV/0!#DIV/0!Manual
Sheet1
Cell Formulas
RangeFormula
J2:J6J2=IFERROR(IF(H2=I2,H2,"Manual"), IF(AND(ISERROR(H2),ISERROR(I2)),"Manual", IF(ISERROR(H2),I2,H2)))
 
Upvote 0
Solution
Ah, I did not realize that were supposed to examples of the same situation.
I thought you were looking for three different formulas.
 
Upvote 0
Thanks.

So, I'm looking for one formula that fixes this, based on the following order:

1. If H&I equal same value, return row H
2. If column H has an error, return column I
3. If column I has an error, return column H
4: If column H&I do not equal same value (eg. multiple days in between each), return "Manual".

4 could go in under item 1 but I don't think it matters.

Apologies, I just saw that my screen-snip left out the row numbers.

Hopefully that is a clearer explanation. Thanks, if you can help!!
 
Upvote 0
My solution returns the same results as Alex's, so take your pick:
Excel Formula:
=IF(AND(ISERROR(H2),ISERROR(I2)),"Manual",IF(ISERROR(H2),I2,IF(ISERROR(I2),H2,IF(H2=I2,H2,"Manual"))))
 
Upvote 0
Those formulas worked for me!!

Thanks for your help and quick replies!!
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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