Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default 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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default 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!

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
Combining 2 IF statements to make one formula. Rip1877 Excel Worksheet Functions 2 October 9th 07 10:21 PM
Combining IF Statements Carl Excel Worksheet Functions 2 November 24th 06 01:20 AM
Combining IF statements Macmo Excel Worksheet Functions 2 May 5th 06 05:17 AM
combining conditional statements wrosie Excel Worksheet Functions 4 November 29th 05 09:59 AM
Combining IF and multiple SUMIF statements, if A>0 & B is between Lee Excel Worksheet Functions 1 January 3rd 05 06:46 PM


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

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

About Us

"It's about Microsoft Excel"