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  

Formula Help



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2010, 04:26 PM posted to microsoft.public.excel.worksheet.functions
HeatherJ
external usenet poster
 
Posts: 25
Default Formula Help

I need a formula (will be in L2) to do the following--

IF G2 contains the text "bail" then L2 should be the contents of cells B2 G2
H2 separated by commas.

If G2 does not contain the text "bail" then I want L2 to remain blank.

Any help would be appreciated. Thanks! Heather
  #2  
Old June 2nd, 2010, 05:08 PM posted to microsoft.public.excel.worksheet.functions
Luke M[_4_]
external usenet poster
 
Posts: 451
Default Formula Help

=IF(G2="bail",B2&","&G2&","&H2,"")

--
Best Regards,

Luke M
"HeatherJ" wrote in message
...
I need a formula (will be in L2) to do the following--

IF G2 contains the text "bail" then L2 should be the contents of cells B2
G2
H2 separated by commas.

If G2 does not contain the text "bail" then I want L2 to remain blank.

Any help would be appreciated. Thanks! Heather



  #3  
Old June 2nd, 2010, 05:12 PM posted to microsoft.public.excel.worksheet.functions
Mike H
external usenet poster
 
Posts: 8,419
Default Formula Help

Hi,

Try this in L2

=IF(G2="Bail",B2&","&G2,"")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.


"HeatherJ" wrote:

I need a formula (will be in L2) to do the following--

IF G2 contains the text "bail" then L2 should be the contents of cells B2 G2
H2 separated by commas.

If G2 does not contain the text "bail" then I want L2 to remain blank.

Any help would be appreciated. Thanks! Heather

  #4  
Old June 2nd, 2010, 05:12 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default Formula Help

=IF(ISERROR(FIND("bail",G2)),"",B2 & "," & G2 & "," & H2)
--
Gary''s Student - gsnu201003
 




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 12:36 AM.


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