ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Copy A1 into C1 if B1 contains data?? (https://www.excelbanter.com/excel-worksheet-functions/233939-copy-a1-into-c1-if-b1-contains-data.html)

Question, Mark

Copy A1 into C1 if B1 contains data??
 
I want to copy whatever is in A1 into C1 if B1 has data. If b1 is blank then
c1 should remain blank. The data in a1 or b1 could be either text or
numbers. As long as anything is in b1 then c1 should contain whatever is in
a1.



Fred Smith[_4_]

Copy A1 into C1 if B1 contains data??
 
Use this in C1:
=if(b1="","",a1)

Regards,
Fred

"Question, Mark" wrote in message
...
I want to copy whatever is in A1 into C1 if B1 has data. If b1 is blank
then
c1 should remain blank. The data in a1 or b1 could be either text or
numbers. As long as anything is in b1 then c1 should contain whatever is
in
a1.




Question, Mark

Copy A1 into C1 if B1 contains data??
 
Excellent! I was misplacing the quotation marks.
Thank you so much.

"Fred Smith" wrote:

Use this in C1:
=if(b1="","",a1)

Regards,
Fred

"Question, Mark" wrote in message
...
I want to copy whatever is in A1 into C1 if B1 has data. If b1 is blank
then
c1 should remain blank. The data in a1 or b1 could be either text or
numbers. As long as anything is in b1 then c1 should contain whatever is
in
a1.





Fred Smith[_4_]

Copy A1 into C1 if B1 contains data??
 
Glad I could help. Thanks for the feedback.

Fred.

"Question, Mark" wrote in message
...
Excellent! I was misplacing the quotation marks.
Thank you so much.

"Fred Smith" wrote:

Use this in C1:
=if(b1="","",a1)

Regards,
Fred

"Question, Mark" wrote in
message
...
I want to copy whatever is in A1 into C1 if B1 has data. If b1 is blank
then
c1 should remain blank. The data in a1 or b1 could be either text or
numbers. As long as anything is in b1 then c1 should contain whatever
is
in
a1.







All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com