Count spilled range result in one cell..

kikola123

New Member
Joined
Oct 6, 2016
Messages
30
Office Version
  1. 2021
Platform
  1. Windows
Hello friends I have formula: =UNIQUE(FILTER($H$4:$H$264, $G$4:$G$264=I2)) and I need to count it so the result was 3. How is it possible?

Thanks in advanced.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Suppose your formula above is in cell J2, then try this formula in another cell.

Excel Formula:
=ROWS(J2#)
 
Upvote 0
Thank you. Is there a possibility for the outcome to reside exclusively in cell J2 without using on additional cells?
 
Upvote 0
I reach solution: =COUNTA(UNIQUE(FILTER($H$4:$H$264,$G$4:$G$264=I2))), but could you give me answer with older versions? So that same result was reached..
 
Upvote 0
I reach solution: =COUNTA(UNIQUE(FILTER($H$4:$H$264,$G$4:$G$264=I2))), but could you give me answer with older versions? So that same result was reached..
Sorry, I did not realise that you wanted to actually replace the earlier formula. Note that your formula (& my previous suggestion too) will only work if there is always at least one cell in G4:G264 that contains the same value as I2. Will that always be the case for you?


could you give me answer with older versions?
Try this (also works if no cells in column G match I2)
Excel Formula:
=SUMPRODUCT(--($G$4:$G$264=I2),--(MATCH($G$4:$G$264&"|"&$H$4:$H$264,$G$4:$G$264&"|"&$H$4:$H$264,0)=ROW($G$4:$G$264)-ROW(G$4)+1))
 
Upvote 0
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,215,147
Messages
6,123,295
Members
449,095
Latest member
Chestertim

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top