ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   If Statements & Combining Cells (https://www.excelbanter.com/excel-worksheet-functions/171982-if-statements-combining-cells.html)

Hark2k

If Statements & Combining Cells
 
I am trying to write a statement where if the values in column A equal a
certain value then it will combine the corresponding data in column B,
preferably separated by a comma. So far CANCATENATE hasn't worked because I
haven't been able to get around identifying specific cells to combine. Does
anyone have any ideas? Thanks!

CLR

If Statements & Combining Cells
 
Here's a start.........

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

Vaya con Dios,
Chuck, CABGx3



"Hark2k" wrote:

I am trying to write a statement where if the values in column A equal a
certain value then it will combine the corresponding data in column B,
preferably separated by a comma. So far CANCATENATE hasn't worked because I
haven't been able to get around identifying specific cells to combine. Does
anyone have any ideas? Thanks!


Gary''s Student

If Statements & Combining Cells
 
In C1 enter:

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

So if A1 is happy, then C1 will show the combination of A1 and B1.

Replace happy with your value
--
Gary''s Student - gsnu200764


"Hark2k" wrote:

I am trying to write a statement where if the values in column A equal a
certain value then it will combine the corresponding data in column B,
preferably separated by a comma. So far CANCATENATE hasn't worked because I
haven't been able to get around identifying specific cells to combine. Does
anyone have any ideas? Thanks!



All times are GMT +1. The time now is 05:01 PM.

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