Article View: microsoft.public.excel
Article #1Re: combining text
From: 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 > >
Technical Details
Message-ID:
<#kTZHFP8EHA.1300@TK2MSFTNGP14.phx.gbl>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mailReferences:
<loqdnQmUU8VYgEXcRVn-1Q@rogers.com>Show Full Headers
Complete Article Headers
Message-ID: <#kTZHFP8EHA.1300@TK2MSFTNGP14.phx.gbl> Subject: Re: combining text Date: Fri, 3 Jan 2025 01:33:34 +0800 From: "Max" <demechanik@yahoo.com> References: <loqdnQmUU8VYgEXcRVn-1Q@rogers.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf2.newsdeef.eu!news.usenet.farm!..!..!not-for-mail Lines: 90 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Newsgroups: microsoft.public.excel NNTP-Posting-Host: bb220-255-62-113.singnet.com.sg 220.255.62.113