Nested IF(ISBLANK) Formula

spectraflame

Well-known Member
Joined
Dec 18, 2002
Messages
830
Office Version
  1. 365
Platform
  1. Windows
I have 3 columns in a sheet titled 'Meter Data' which are formatted as a date. From another sheet within the same workbook, I would like to perfrom an IF(ISBLANK) statement. The 3 columns do not always contain the same number of dates.

My IF(ISBLANK) statement that I am trying to write goes like this.

If cell A1 in the Meter Data sheet contains a date, return that date; but if is does not, give me the date in cell G1, but if that cell does not contain a valid date; give me the date from M1 and finally if none of the referenced cells contain a date, leave the cell blank.

I have tried the following, but I cannot find my mistake.

=IF(ISBLANK('Meter Data'!A1,'Meter Data'!G1,IF(ISBLANK('Meter Data'!G1,'Meter Data'!M1,"",))))

Any suggestions would be appreciated.

Thanks,
Matthew
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try this;

Code:
=IF('Meter Data'!A1<>"",'Meter Data'!A2,IF('Meter Data'!G1<>"",'Meter Data'!G1,IF('Meter Data'!M1<>"",'Meter Data'!M1,"")))
 
Upvote 0
Jimboy,

That did the tirck. I have not seen that <> used in that manner before. I guess you can still learn something new every day.

Thanks again,
Matthew
 
Upvote 0

Forum statistics

Threads
1,226,007
Messages
6,188,364
Members
453,471
Latest member
D Tyme

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