LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
b w b w is offline
external usenet poster
 
Posts: 3
Default Concatenate a string when cells are not zero

I'd like to know how to concatenate when the value of the B cells are
non-zero as follows:

="The result is as follows...Detail: " & A1 & B1 & A2 & B2 & A3 & B3
&...Ax & Bx & "Total=" & Text(Sum(B1:Bx),"$#,##0.00"

If a B cell value is zero, then don't concatenate with the corresponding
A cell.

The result should be something like this:
Result is as follows...Detail: Hotel=$150.00, Gasoline=$75.00,
Total=$225.00

Thanks,
Bernie

*** Sent via Developersdex http://www.developersdex.com ***
 
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
logical test and concatenate(string) dpayne Excel Discussion (Misc queries) 7 April 5th 07 08:30 PM
Concatenate in a string IntricateFool Excel Worksheet Functions 4 June 7th 06 07:29 PM
Opposite of Concatenate (Breaking apart a string) XMLCimo Excel Worksheet Functions 1 March 5th 06 12:20 AM
string concatenate DorisM Excel Programming 3 July 7th 05 01:39 AM
concatenate a text string if two different cells contain the sam. Linda G Excel Worksheet Functions 5 January 17th 05 07:53 PM


All times are GMT +1. The time now is 02:10 AM.

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"