Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
coddave
 
Posts: n/a
Default Combining data greater than 0

Hi,

I have an order sheet where along the top I have the items and down the side
I have the clients. Currently I enter quantities below the items at the top
of the page to line up with each client rows. What I would like to do is
have another column at the end of the sheet, which would summarize the order
for me. E.g. If along the top I have apples, oranges, bananas, and down the
side I have client A,B,C; I would like to have a summary column that would
say 3-apples, 2-bananas. Any column with a 0 would not show up.

I appreciate any help offered,

Dave
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

If all the headers don't have any spaces, you could use something like:

=SUBSTITUTE(TRIM(IF(B2=0,"",B2&"-"&$B$1)&" "&IF(C2=0,"",C2&"-"&$C$1)
&" "&IF(D2=0,"",D2&"-"&$D$1)&" "&IF(E2=0,"",E2&"-"&$E$1))," ",", ")

I stopped at column E, but you could extend the pattern pretty far. (There is a
limit of 1024 characters in a formula (when measured in R1C1 reference style.)

(if you do have spaces in your headers, you can cheat and use a non-breaking
space in that label.

For example:
Red Grapes
Instead of typing a spacebar after the d in Red, use alt-0160 (hold the alt key
while typing 0160 on the numeric keypad).



coddave wrote:

Hi,

I have an order sheet where along the top I have the items and down the side
I have the clients. Currently I enter quantities below the items at the top
of the page to line up with each client rows. What I would like to do is
have another column at the end of the sheet, which would summarize the order
for me. E.g. If along the top I have apples, oranges, bananas, and down the
side I have client A,B,C; I would like to have a summary column that would
say 3-apples, 2-bananas. Any column with a 0 would not show up.

I appreciate any help offered,

Dave


--

Dave Peterson
  #3   Report Post  
coddave
 
Posts: n/a
Default

Thank You Dave, it worked perfectly.

Sincerely,

Dave

"Dave Peterson" wrote:

If all the headers don't have any spaces, you could use something like:

=SUBSTITUTE(TRIM(IF(B2=0,"",B2&"-"&$B$1)&" "&IF(C2=0,"",C2&"-"&$C$1)
&" "&IF(D2=0,"",D2&"-"&$D$1)&" "&IF(E2=0,"",E2&"-"&$E$1))," ",", ")

I stopped at column E, but you could extend the pattern pretty far. (There is a
limit of 1024 characters in a formula (when measured in R1C1 reference style.)

(if you do have spaces in your headers, you can cheat and use a non-breaking
space in that label.

For example:
Red Grapes
Instead of typing a spacebar after the d in Red, use alt-0160 (hold the alt key
while typing 0160 on the numeric keypad).



coddave wrote:

Hi,

I have an order sheet where along the top I have the items and down the side
I have the clients. Currently I enter quantities below the items at the top
of the page to line up with each client rows. What I would like to do is
have another column at the end of the sheet, which would summarize the order
for me. E.g. If along the top I have apples, oranges, bananas, and down the
side I have client A,B,C; I would like to have a summary column that would
say 3-apples, 2-bananas. Any column with a 0 would not show up.

I appreciate any help offered,

Dave


--

Dave Peterson

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 and sorting data from two workbooks Tamesh Excel Discussion (Misc queries) 4 September 28th 05 04:25 PM
Saving data in a worksheet within a workbook Homeuser Excel Discussion (Misc queries) 2 August 21st 05 11:49 PM
Combining two data sources in a Pivot table. Erasmus Bowen Excel Discussion (Misc queries) 0 August 19th 05 10:16 AM
Sort pages? David Excel Discussion (Misc queries) 15 May 14th 05 12:33 AM
Combining data (numeric format) in multiple cells into one cell (t GNAC SID Excel Discussion (Misc queries) 2 February 7th 05 05:09 PM


All times are GMT +1. The time now is 04:25 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"