Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-16-2021, 05:07 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default Mail merge field help for percentage null values

Hi Guys

I need your help to generate as empty if cells empty in excel mail merge.

I have used the below field but return as 0.00% instead of empty.

{ =0*100 \# "0.00%" }

If cells have values then above field code working fine but if nothing in excel cell return as 0.00%. So please help out on this issue

My field code name is "Prod Quality_".

thanks
Ganesan. G
Reply With Quote
  #2  
Old 08-16-2021, 05:33 AM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Do you mean like


{ IF { MERGEFIELD Prod_Quality_ } <> "" "{ = { MERGEFIELD Prod_Quality_ }*100 \# "0.00%" }" }
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #3  
Old 08-16-2021, 05:54 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi

Yes it is!!

But how to incorporate this filed code in to my document?

Above field code returns "Mergefield" instead of null or cell value.

thanks
Ganesan.G
Reply With Quote
  #4  
Old 08-16-2021, 08:40 PM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Each pair of brackets { } indicates a field. (CTRL+F9)
Either construct the elements manually or convert the text to fields using Import and export field constructions as text
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #5  
Old 08-16-2021, 09:17 PM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi

I have tried as you said but returns only "MERGEFIELD" instead of empty or respective data value.

I think something need to update in this field code as if condition is false return as "".

Can u please advise on this?
Reply With Quote
  #6  
Old 08-16-2021, 10:26 PM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

If the field name is, as you suggested "Prod_Quality_" then the field construction will produce a blank in place of the empty field, or the calculation for a numeric value. The fact that you say it produces MERGEFIELD suggests that you have not entered it correctly. Copy it from my earlier reply and use the add-in to convert it to working fields.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #7  
Old 08-17-2021, 01:08 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

I tried it but got below format

IF 0.99629999999999996 <> "" "99.63%"

or

0.00%
Reply With Quote
  #8  
Old 08-17-2021, 04:47 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

These documents i have used attached here.

Can you please investigate and advise?
Attached Files
File Type: docx Mail_Merge.docx (13.0 KB, 8 views)
File Type: xlsx dashboard.xlsx (9.4 KB, 9 views)
Reply With Quote
  #9  
Old 08-17-2021, 05:10 AM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

See attached
Attached Files
File Type: docx Mail_Merge.docx (12.1 KB, 11 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #10  
Old 08-17-2021, 05:20 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Awesome!! finally got it

Thanks much gmayor!!
Reply With Quote
  #11  
Old 08-17-2021, 05:37 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi gmayor

One quick question

Can we link excel mail merge data from MS-Teams app.

I have the data in excel and stored in MS-Teams.

So please let me know if options there.
Reply With Quote
  #12  
Old 08-17-2021, 05:53 AM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Sorry I don't know anything about MS-Teams



__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #13  
Old 08-27-2021, 12:47 AM
ganesang ganesang is offline Mail merge field help for percentage null values Windows XP Mail merge field help for percentage null values Office 2016
Competent Performer
Mail merge field help for percentage null values
 
Join Date: Jul 2018
Posts: 171
ganesang is on a distinguished road
Default

Hi All

Can someone help me out on excel mail merge field function

I need to format percentage value based on the below conditions

If cell have empty return empty, if cell have NA return NA, if cell have values like 95.00% return that value.

I have used this code but not working properly

{ IF { MERGEFIELD Prod_Quality_ } = “NA” "NA" { IF { MERGEFIELD Prod_Quality_ } = “” “” { IF { MERGEFIELD Prod_Quality_ } <>"" }"{= MERGEFIELD Prod_Quality_ }*100 \# "0.00%" }" }}}

Please check and help me out
Reply With Quote
  #14  
Old 08-28-2021, 10:47 PM
gmayor's Avatar
gmayor gmayor is offline Mail merge field help for percentage null values Windows 10 Mail merge field help for percentage null values Office 2019
Expert
 
Join Date: Aug 2014
Posts: 4,101
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

The following will work (see attached)
{ IF { MERGEFIELD Prod_Quality_ } = "NA" "NA" "{ IF { MERGEFIELD Prod_Quality_ } = "" "" " { =({ MERGEFIELD Prod_Quality_ }* 100) \# "0.00%" } "} "}
Attached Files
File Type: docx Mail_Merge.docx (12.2 KB, 6 views)
File Type: xlsx dashboard.xlsx (9.1 KB, 5 views)
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
text-to-Fields failing - how get null for missing values? guthrie Excel 8 06-09-2016 08:36 PM
Mail merge field help for percentage null values Display Null Values in Pivot as 0 lornalou Excel 2 06-02-2016 10:39 AM
Mail merge how to link mail merge field value to a column heading dsummers Mail Merge 1 05-08-2014 02:59 PM
Mail merge field help for percentage null values formating a percentage in a Mail Merge dkalsow Mail Merge 3 04-03-2012 03:38 PM
Mail merge field help for percentage null values Eliminating zeros, null values and negatives in a column jannie Excel 1 06-22-2011 07:03 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft