E
Ed from AZ
I have a range that covers B5:XA160. For each row, data is entered in
11-cell groups: date, some numbers, description (a text value), more
numbers, and more numbers. At first it was enough to merely count how
many times certain descriptions appeared, because those were the only
ones we would see - or so the story went. Now, I need to extract the
unique descriptions AND provide a count!
Actually, I'm cheating a bit. I'm using SUMPRODUCT to return the
number of times the expected descriptions appear, and by subtracting
these from the total number of text values I get a count of "Other".
Desc1: =SUMPRODUCT(--(ISNUMBER(SEARCH("Desc1",B5:XA5))))
(This one only searches the top row because the value is repeated
all the way down.)
Desc2: =SUMPRODUCT(--(ISNUMBER(SEARCH("Desc2",$B$5:$XA$160))))
(This one searches the whole range.)
Other: =(SUMPRODUCT(ISTEXT($B$5:$XA$160)*1))-((SUMPRODUCT(--(ISNUMBER
(SEARCH("Desc1",$B$5:$XA$160)))))+(SUMPRODUCT(--(ISNUMBER(SEARCH
("Desc2",$B$5:$XA$160))))))
(This one searches the whole range for all text values, then
subtracts the known values.)
Now, though, I need to show what these "Other" values are and provide
a count. Is that possible without building an array in VBA?
Ed
11-cell groups: date, some numbers, description (a text value), more
numbers, and more numbers. At first it was enough to merely count how
many times certain descriptions appeared, because those were the only
ones we would see - or so the story went. Now, I need to extract the
unique descriptions AND provide a count!
Actually, I'm cheating a bit. I'm using SUMPRODUCT to return the
number of times the expected descriptions appear, and by subtracting
these from the total number of text values I get a count of "Other".
Desc1: =SUMPRODUCT(--(ISNUMBER(SEARCH("Desc1",B5:XA5))))
(This one only searches the top row because the value is repeated
all the way down.)
Desc2: =SUMPRODUCT(--(ISNUMBER(SEARCH("Desc2",$B$5:$XA$160))))
(This one searches the whole range.)
Other: =(SUMPRODUCT(ISTEXT($B$5:$XA$160)*1))-((SUMPRODUCT(--(ISNUMBER
(SEARCH("Desc1",$B$5:$XA$160)))))+(SUMPRODUCT(--(ISNUMBER(SEARCH
("Desc2",$B$5:$XA$160))))))
(This one searches the whole range for all text values, then
subtracts the known values.)
Now, though, I need to show what these "Other" values are and provide
a count. Is that possible without building an array in VBA?
Ed