Hello and Happy New Year to all!
I dont have access to Excel on this machine so I'll try to explain without it. Please bear with me
On Sheet1, I have 2columns: a list of unique items and group they belong to:
Item: Group
Item1 1
Item2 1
Item3 1
Item10 2
Item25 2
Item155 3
Again, all item names are unique.
On Sheet2 in column A, I have a random list of Items from column A above.
What I need to do is to figure out how many items from each group are on that list and get that number in column B of sheet2
I know how to do it in 2 steps, but I'm trying to figure it out how to do it in one step.
Here is how I do it now:
In column B of sheet2, I figure out what group the item belongs to: =sumif(sheet1!CoulmnA:A,A1,sheet1!CoulmnB:B)
In column C of sheet2, I count number of appearances in column B: =countIf(ColumnB:B,B1)
So I guess my quiestion is: how do I combine two formulas above into one.
Thank you so much in advance for you help! Please let me know if any of this is unclear.
Bookmarks