Dynamically assign Cell Number

Guntherm

New Member
Joined
Mar 12, 2009
Messages
15
Hopefully I can explain this correctly:

Given:
=SUM(IF(FREQUENCY(MATCH($F$2:$F286, $F$2:$F286,0),MATCH($F$2:$F286, $F$2:$F286,0))>0,1))

That tells me if there is duplicates and counts just the unique ones. Works really well(always open to an easier formula)

Here's the issue the $F$2 is static, however in this example $F286 can change(want to change) Based on the last row (Column A) that has data in it.

I have fooled with (ROWS(A:A)-COUNTIF(A:A,"")) which does give me a count of the rows containing data. Any suggestion how to take the value of this formula on this line and incorporate it into above.. or even a better one.
<colgroup><col width="217" style="width: 163pt; mso-width-source: userset; mso-width-alt: 7936;"> <tbody> </tbody>

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Anyone got a possible direction?

SUM(IF(FREQUENCY(MATCH($F$2:$F&(ROWS(A:A)-COUNTIF(A:A,"")), $F$2:$F286,0),MATCH($F$2:$F286, $F$2:$F286,0))>0,1))

That's what I try and it's a no go. =(ROWS(A:A)-COUNTIF(A:A,"")) into any cells gives me 286 value.
 
Upvote 0

Forum statistics

Threads
1,215,647
Messages
6,126,006
Members
449,280
Latest member
Miahr

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