Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Is there an elegant way?

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)

  #2   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Is there an elegant way?

Do you want the results to appear in one column? If so, try this (assuming
data is in A1:E3) and copy down:

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1)," ",",
")&";","")

If you want them in separate columns, use the formula above, then use
Data/Text To Columns using Space as the delimiter.



"veryeavy" wrote:

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)

  #3   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Is there an elegant way?

The NG wrapped the text so that you cannot see the space after the comma, so
I wrote it in.

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1),"
",",<space")&";","")

"JMB" wrote:

Do you want the results to appear in one column? If so, try this (assuming
data is in A1:E3) and copy down:

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1)," ",", ")&";","")

If you want them in separate columns, use the formula above, then use
Data/Text To Columns using Space as the delimiter.



"veryeavy" wrote:

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 72
Default Is there an elegant way?

Uber-elegant.

It would have taken me a month of Sundays and I still wouldn't have hit on
this.

Many Many Thanks JMB :-)

"JMB" wrote:

The NG wrapped the text so that you cannot see the space after the comma, so
I wrote it in.

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1),"
",",<space")&";","")

"JMB" wrote:

Do you want the results to appear in one column? If so, try this (assuming
data is in A1:E3) and copy down:

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1)," ",", ")&";","")

If you want them in separate columns, use the formula above, then use
Data/Text To Columns using Space as the delimiter.



"veryeavy" wrote:

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)

  #5   Report Post  
Posted to microsoft.public.excel.misc
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default Is there an elegant way?

You are quite welcome.

"veryeavy" wrote:

Uber-elegant.

It would have taken me a month of Sundays and I still wouldn't have hit on
this.

Many Many Thanks JMB :-)

"JMB" wrote:

The NG wrapped the text so that you cannot see the space after the comma, so
I wrote it in.

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1),"
",",<space")&";","")

"JMB" wrote:

Do you want the results to appear in one column? If so, try this (assuming
data is in A1:E3) and copy down:

=IF(COUNTA(A1:E1),SUBSTITUTE(TRIM(A1&" "&B1&" "&C1&" "&D1&" "&E1)," ",", ")&";","")

If you want them in separate columns, use the formula above, then use
Data/Text To Columns using Space as the delimiter.



"veryeavy" wrote:

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Is there an elegant way?

=SUBSTITUTE(TRIM(CONCATENATE(A1," ",B1," ",C1," ",D1," ",E1))&";"," ",", ")


"veryeavy" wrote:

Hi All,

I am trying to write an automated commentary on some financial variances.

From here on my methos so far and a better method may diverge.

I have set up a grid where those variances I want to report are shown, e.g.

blank Loans blank Deposits blank
Cash blank blank Deposits Other
blank blank Shares blank blank

and I want the following displayed:

Loans, Deposits;
Cash, Deposits;
Shares;

EXACTLY like that ... (lining up on the same rows as the above is fine).

I am not sure if this IS difficult or I am just MAKING this difficult!

Really would appreciate any help as manually creating these commentaries is
tedious.

TIA and cheers,

Matt Geare
"veryeavy" on BBO :-)

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
Is there an elegant solution to this table? [email protected] Excel Discussion (Misc queries) 3 July 9th 06 01:31 PM
Profitability Index--More Elegant Equation Kevin H. Stecyk Excel Discussion (Misc queries) 2 May 14th 06 04:10 PM
More elegant way to do IF () Barb Reinhardt Excel Worksheet Functions 7 May 6th 06 09:36 AM
Working Hours (formula & graph) - any elegant solution? markx Excel Worksheet Functions 1 March 29th 06 02:02 PM
More elegant method? Biff Excel Worksheet Functions 0 January 13th 06 08:23 AM


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

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

About Us

"It's about Microsoft Excel"