A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

If Statements & Combining Cells



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2008, 01:45 PM posted to microsoft.public.excel.worksheet.functions
Hark2k
external usenet poster
 
Posts: 6
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  
Old January 7th, 2008, 01:57 PM posted to microsoft.public.excel.worksheet.functions
CLR
external usenet poster
 
Posts: 1,638
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  
Old January 7th, 2008, 01:59 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
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!

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.