Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
This is a distribution report. with the following 2000+ rows and10 cols. One column headed "load number "contains a number that is the same for 1,2,3,4,5, 6,7,8 or 9 rows, unfortunately this not constant. What I am attempting to get is the number of different delivery points (col B) for each load number in col A I have tried sub totals but can't get to count only different ones? Col A Col B GA1234. Ipswich GA1234. Norwich GA1234. Ipswich GA2345. B'ham GA2345.Stoke GA2345.Stafford GA2345.Stoke GA2345.Stoke Hopefully end up with the following result GA1234 = 2. GA2345 = 3 Any idea's or direction Regards Brian -- bnt Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200605/1 |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi!
Try this: D1 = GA1234 D2 = GA2345 Enter this formula in E1 and copy down: =SUMPRODUCT((A$1:A$8=D1)/COUNTIF(B$1:B$8,B$1:B$8)) Biff "brian thompson3001 via OfficeKB.com" <u15682@uwe wrote in message news:5fb70e390a218@uwe... Hi This is a distribution report. with the following 2000+ rows and10 cols. One column headed "load number "contains a number that is the same for 1,2,3,4,5, 6,7,8 or 9 rows, unfortunately this not constant. What I am attempting to get is the number of different delivery points (col B) for each load number in col A I have tried sub totals but can't get to count only different ones? Col A Col B GA1234. Ipswich GA1234. Norwich GA1234. Ipswich GA2345. B'ham GA2345.Stoke GA2345.Stafford GA2345.Stoke GA2345.Stoke Hopefully end up with the following result GA1234 = 2. GA2345 = 3 Any idea's or direction Regards Brian -- bnt Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200605/1 |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Assuming that A2:B9 contains the data, let D2 and D3 contain GA1234 and
GA234, then try the following... E2, copied down: =SUMPRODUCT(--(A$2:A$9=D2),--(B$2:B$9<""),--(MATCH(A$2:A$9&B$2:B$9,A$2:A $9&B$2:B$9,0)=ROW(B$2:B$9)-ROW(B$2)+1)) or =COUNT(1/FREQUENCY(IF(A$2:A$9=D2,IF(B$2:B$9<"",MATCH(B$2:B $9,B$2:B$9,0)) ),ROW(B$2:B$9)-ROW(B$2)+1)) Note that the latter formula needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! In article <5fb70e390a218@uwe, "brian thompson3001 via OfficeKB.com" <u15682@uwe wrote: Hi This is a distribution report. with the following 2000+ rows and10 cols. One column headed "load number "contains a number that is the same for 1,2,3,4,5, 6,7,8 or 9 rows, unfortunately this not constant. What I am attempting to get is the number of different delivery points (col B) for each load number in col A I have tried sub totals but can't get to count only different ones? Col A Col B GA1234. Ipswich GA1234. Norwich GA1234. Ipswich GA2345. B'ham GA2345.Stoke GA2345.Stafford GA2345.Stoke GA2345.Stoke Hopefully end up with the following result GA1234 = 2. GA2345 = 3 Any idea's or direction Regards Brian |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
With a list of unique 'load numbers' in column F, in F1 enter
=SUMPRODUCT(--($A$1:$A$8=F1),--(1/COUNTIF($B$1:$B$8,$B$1:$B$8))) copy down the column best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "brian thompson3001 via OfficeKB.com" <u15682@uwe wrote in message news:5fb70e390a218@uwe... Hi This is a distribution report. with the following 2000+ rows and10 cols. One column headed "load number "contains a number that is the same for 1,2,3,4,5, 6,7,8 or 9 rows, unfortunately this not constant. What I am attempting to get is the number of different delivery points (col B) for each load number in col A I have tried sub totals but can't get to count only different ones? Col A Col B GA1234. Ipswich GA1234. Norwich GA1234. Ipswich GA2345. B'ham GA2345.Stoke GA2345.Stafford GA2345.Stoke GA2345.Stoke Hopefully end up with the following result GA1234 = 2. GA2345 = 3 Any idea's or direction Regards Brian -- bnt Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200605/1 |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
thanks to you all for the response. I did use domenic's "frequency" in the
end Regards Domenic wrote: Assuming that A2:B9 contains the data, let D2 and D3 contain GA1234 and GA234, then try the following... E2, copied down: =SUMPRODUCT(--(A$2:A$9=D2),--(B$2:B$9<""),--(MATCH(A$2:A$9&B$2:B$9,A$2:A $9&B$2:B$9,0)=ROW(B$2:B$9)-ROW(B$2)+1)) or =COUNT(1/FREQUENCY(IF(A$2:A$9=D2,IF(B$2:B$9<"",MATCH(B$2:B $9,B$2:B$9,0)) ),ROW(B$2:B$9)-ROW(B$2)+1)) Note that the latter formula needs to be confirmed with CONTROL+SHIFT+ENTER, not just ENTER. Hope this helps! Hi [quoted text clipped - 25 lines] Brian -- bnt Message posted via OfficeKB.com http://www.officekb.com/Uwe/Forums.a...excel/200605/1 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Total Summed Count of Numeric Repeat (Paired /Double Instance) Criteria | Excel Worksheet Functions | |||
Count Intervals of 2 Consecutive Values in same Row and Return Count across Row | Excel Worksheet Functions | |||
Count Position of Filtered TEXT cells in a column | Excel Worksheet Functions | |||
Count Position of Filtered TEXT cells in a column | Excel Worksheet Functions | |||
Conversion | Excel Worksheet Functions |