Thread View: microsoft.public.excel
1 messages
1 total messages
Started by Max
Thu, 02 Jan 2025 17:33
Re: combining text
Author: Max
Date: Thu, 02 Jan 2025 17:33
Date: Thu, 02 Jan 2025 17:33
89 lines
2734 bytes
2734 bytes
One try .. Suppose this data-set is in Sheet1, A1:C6 > Date Amount Notes > 1 Jan 25 rain > 1 Jan 33 sunny > 2 Jan 58 > 3 Jan 52 snow > 3 Jan 103 In Sheet2 ------------ You have this set-up, where the dates are listed in A2 down > Date Amount Notes > 1 Jan > 2 Jan > 3 Jan Put in B2: =SUMIF(Sheet1!A:A,A2,Sheet1!B:B) Select D2:H2 (i.e. a horizontal range** equal in size to the # of rows of data in Sheet1) Put in the formula bar: =IF(TRANSPOSE(IF(Sheet1!$A$2:$A$6=A2,Sheet1!$C$2:$C$6,""))=0,"",TRANSPOSE(IF (Sheet1!$A$2:$A$6=A2,Sheet1!$C$2:$C$6,""))) Array enter the formula, i.e. press CTRL+SHIFT+ENTER, instead of just pressing ENTER Put in C2: =TRIM(D2&" "&E2&" "&F2&" "&G2&" "&H2) Select B2:H2, fill down You'll get in A1:C3 : > Date Amount Notes > 1 Jan 58 rain sunny > 2 Jan 58 > 3 Jan 155 snow (Hide away cols D to H, if desired) **This condition will unfortunately, limit you to cover up to a max of 253 rows of data in Sheet1, [ Max cols is 256, less 3 cols used = 253 ] Adapt / extend to suit -- Rgds Max xl 97 --- GMT+8, 1° 22' N 103° 45' E xdemechanik <at>yahoo<dot>com ---- Jack <mjmclean@hotmail.com> wrote in message news:loqdnQmUU8VYgEXcRVn-1Q@rogers.com... > Hi > I have some thing like this.... > Date Amount Notes > 1 Jan 25 rain > 1 Jan 33 sunny > 2 Jan 58 > 3 Jan 52 snow > 3 Jan 103 > etc > > What I am looking to do is make a summary page that will some the amounts by > date (got that working no problem) and to combine the notes together so that > I would have something like below > > Date Amount Notes > 1 Jan 58 rain sunny > 2 Jan 58 > 3 Jan 155 snow > etc > > > Thanks > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads