Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jack
 
Posts: n/a
Default If Statement and Concatenate

Hello. I have worksheet in which I have data in the A column, data in the B
column, and (sometimes) in the C column. I'm having trouble with the correct
formula. I want to put in the D column something that states If "C1" is
blank then enter A1. And If "C1" is not blank, then concatenate A1 and B1.

I hope that makes sense and thank you in advance.


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=IF(C1=",A1,A1&B1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jack" wrote in message
...
Hello. I have worksheet in which I have data in the A column, data in the

B
column, and (sometimes) in the C column. I'm having trouble with the

correct
formula. I want to put in the D column something that states If "C1" is
blank then enter A1. And If "C1" is not blank, then concatenate A1 and

B1.

I hope that makes sense and thank you in advance.




  #3   Report Post  
Chip Pearson
 
Posts: n/a
Default

Try a formula like

=IF(C1="",A1,A1&B1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jack" wrote in message
...
Hello. I have worksheet in which I have data in the A column,
data in the B
column, and (sometimes) in the C column. I'm having trouble
with the correct
formula. I want to put in the D column something that states
If "C1" is
blank then enter A1. And If "C1" is not blank, then
concatenate A1 and B1.

I hope that makes sense and thank you in advance.




  #4   Report Post  
Jack
 
Posts: n/a
Default

Thank you everyone. you were very helpful.

"Chip Pearson" wrote:

Try a formula like

=IF(C1="",A1,A1&B1)


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Jack" wrote in message
...
Hello. I have worksheet in which I have data in the A column,
data in the B
column, and (sometimes) in the C column. I'm having trouble
with the correct
formula. I want to put in the D column something that states
If "C1" is
blank then enter A1. And If "C1" is not blank, then
concatenate A1 and B1.

I hope that makes sense and thank you in advance.





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



All times are GMT +1. The time now is 01:47 AM.

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"