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.[TABLE="width: 163"]
<colgroup><col width="217" style="width: 163pt; mso-width-source: userset; mso-width-alt: 7936;"> <tbody>[TR]
[TD="width: 217, bgcolor: transparent, align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 217"]
<tbody>[TR]
[TD="align: right"][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
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,223,248
Messages
6,171,021
Members
452,374
Latest member
keccles

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