Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Roland
 
Posts: n/a
Default formula to combine cells using if/then

How about

=IF(OR(B1=D1,D1=""),A1&" & "&C1,A1&" "&B1&" and "&C1)



"Linda G" wrote:

Primary First Primay Last Secondary First Secondary Last First Last
John Smith Debbie John & Debbie
Carl Overstreet June Overstreet Carl & June
Robert Johnson Susan Devers

I have the formula that combines the primary first and primary last name if
the Primary Last Name is either the same as the Secondary Last Name or the
Secondary Last Name is blank. =IF(OR(B1=D1,D1=""),A1&" & "& C1,"") I need to
add to this a formula that will combine the Primary First, Primary Last, &
the Secondary First Name into the First Name Column when the Primary Last
Name and the Secondary Last Name are not the same.


  #2   Report Post  
Linda G
 
Posts: n/a
Default

Thank You Roland, now I have one more question.

I have a formula that will put the Primary Last Name into Cell F2 and would
like to (OR(B2=D2,D2="") I need to add the variable that if B2 Does not equal
D2 and D2 is not blank that it will bring over D2 into cell F2.

Thank YOU

"Roland" wrote:

How about

=IF(OR(B1=D1,D1=""),A1&" & "&C1,A1&" "&B1&" and "&C1)



"Linda G" wrote:

Primary First Primay Last Secondary First Secondary Last First Last
John Smith Debbie John & Debbie
Carl Overstreet June Overstreet Carl & June
Robert Johnson Susan Devers

I have the formula that combines the primary first and primary last name if
the Primary Last Name is either the same as the Secondary Last Name or the
Secondary Last Name is blank. =IF(OR(B1=D1,D1=""),A1&" & "& C1,"") I need to
add to this a formula that will combine the Primary First, Primary Last, &
the Secondary First Name into the First Name Column when the Primary Last
Name and the Secondary Last Name are not the same.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What formula is used for subtracting a range of different cells f. tim Excel Worksheet Functions 3 April 21st 23 10:07 PM
Cells displays formula, not results synaptic5150 Excel Worksheet Functions 1 January 19th 05 09:56 PM
How do i select different cells to be use in a formula. Manuel Excel Discussion (Misc queries) 1 January 13th 05 03:52 PM
How do I set up a formula to repat 5 consecutive cells in a colum. jbsand1001 Excel Worksheet Functions 2 January 7th 05 08:36 PM
Excel - formula to calculate colored fill cells within a range wi. MA Excel Worksheet Functions 1 January 7th 05 04:06 PM


All times are GMT +1. The time now is 11:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"