ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Use multiple functions in single formula (https://www.excelbanter.com/excel-discussion-misc-queries/222171-use-multiple-functions-single-formula.html)

Andrea54

Use multiple functions in single formula
 
I am attempting to generate a formula that states if the data in cell A1=A2,
then merge the data in cells C1&C2 separated by a comma

Cannot combine both =IF and =CONCATENATE in the same formula
--
Andrea54

FSt1

Use multiple functions in single formula
 
hi
try this
=IF(A1=A2,C1&", "&C2,0)

regards
FSt1

"Andrea54" wrote:

I am attempting to generate a formula that states if the data in cell A1=A2,
then merge the data in cells C1&C2 separated by a comma

Cannot combine both =IF and =CONCATENATE in the same formula
--
Andrea54


Bob Phillips[_3_]

Use multiple functions in single formula
 
=IF(A1=A2,C1&","&C2,"")

You can have two functions, you just use one =.

--
__________________________________
HTH

Bob

"Andrea54" wrote in message
...
I am attempting to generate a formula that states if the data in cell
A1=A2,
then merge the data in cells C1&C2 separated by a comma

Cannot combine both =IF and =CONCATENATE in the same formula
--
Andrea54




Andrea54

Use multiple functions in single formula
 
Worked like a charm, thank-you very much!
--
Andrea54


"FSt1" wrote:

hi
try this
=IF(A1=A2,C1&", "&C2,0)

regards
FSt1

"Andrea54" wrote:

I am attempting to generate a formula that states if the data in cell A1=A2,
then merge the data in cells C1&C2 separated by a comma

Cannot combine both =IF and =CONCATENATE in the same formula
--
Andrea54



All times are GMT +1. The time now is 06:57 PM.

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