Statements based on missing information

kelly1

Well-known Member
Joined
May 11, 2003
Messages
525
I would like statements based on missing information to merge into documents.

As example

If name is missing = no name entered
If address 1 & 2 are missing = no address entered
If name and address is missing = no name or address entered
Book4.xls
ABCDEFGHI
4
5NamePaulSmithStatements
61nonameentered
7Address11TheNewRoad2noaddressentered
8Address2London3nonameoraddressentered
9
Sheet1


Thanks for any help


Kelly
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Could you please supply some more information?

Are you trying to merge data from an Excel spreadsheet into a Word document?
 
Upvote 0
If C5 is blank, & C7 & C8 has an entry
Then return F6


If C5 has an entry, & C7 & C8 are blank
Then return F7


If C5 & C7 & C8 are blank
Then return F8


Is that ok?

No I’m not merging with Word, I can merge with Excel ok, I want to merge a statement based on that argument.

Kelly
 
Upvote 0
I'm still not 100% sure what you are after.

Where do you want to 'return' these values?

You might want to take a look at the ISBLANK worksheet function.
 
Upvote 0
=IF(AND(C5="",C7<>"",C8<>""),F6,"")

=IF(AND(C5<>"",C7="",C8=""),F7,"")

=IF(AND(C5="",C7="",C8=""),F8,"")

Assumes you want nothing returned if criteria not met
 
Upvote 0

Forum statistics

Threads
1,203,027
Messages
6,053,120
Members
444,640
Latest member
Dramonzo

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