Mail Merge 12:00:00 AM for cells with a formula that is supposed to be blank

ac66bronco

New Member
Joined
Dec 10, 2014
Messages
39
Hey all.

Bit of a n00b when it comes to Mail Merge.

I am running into an issue where a cell is supposed to have a formula but the conditions of that formula are not met so it's supposed to not show data.

Example. =IF(K2<9," ",EDATE(V2,1)). K2 has 6 for a value so I want it to return nothing in that cell.

The problem arises with the Mail Merge. It is returning "12:00:00 AM" when I want it to behave as if the cell were totally blank.

Any advice?
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
thats a space not a blank
may still not work, as mail merge may see blanks as time 12:00 - excel does not when formatted as TIME - but the extraction into mail may extract blanks as zeros , lots of excel functions also do that
=IF(K2<9,"",EDATE(V2,1))

as it maybe seeing the " " as zero

whats in the cell with formula now ???

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0
thats a space not a blank
may still not work, as mail merge may see blanks as time 12:00 - excel does not when formatted as TIME - but the extraction into mail may extract blanks as zeros , lots of excel functions also do that
=IF(K2<9,"",EDATE(V2,1))

as it maybe seeing the " " as zero

whats in the cell with formula now ???

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone

This actually worked! i just need to do a bit more tweaking! Thank you!
 
Upvote 0
But a new problem has arisen.

When the condition is met the Mail Merge is showing the numerical data of 45901 instead of 09/01/25

despite my formatting with

{ MERGEFIELD DUE_DATE_7\@ "MM/DD/YY" }
 
Upvote 0
that is the date as excel sees it
not sure how mail merge works
BUT in excel you can change to text

TEXT( date cell , "MM/DD/YY" )

=IF(K2<9,"",TEXT(EDATE(V2,1),"MM/DD/YY" ))
 
Upvote 0
you are welcome
just remember that now in that cell with the IF , its NOT a real date and just text - so cannot be used as a date in anywhere in excel without conversion , probably better to use EDATE(V2,1) rather then the cell with the IF
 
Upvote 0

Forum statistics

Threads
1,226,077
Messages
6,188,763
Members
453,499
Latest member
samdan87153

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