Excel Double Counting

nigerla

New Member
Joined
Apr 14, 2011
Messages
3
Hi All,

I am working on a spreadsheet that has several indentical values. E.g

A1= John Thomas B1= 12/20/2009
A2= John Thomas B2= 12/20/2009
A3= John Thomas B3= 12/20/2009

How do I get use a count formula to count it once instead of twice?

Thanks, I appreciate your help an assistance.
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
Hi All,

I am working on a spreadsheet that has several indentical values. E.g

A1= John Thomas B1= 12/20/2009
A2= John Thomas B2= 12/20/2009
A3= John Thomas B3= 12/20/2009

How do I get use a count formula to count it once instead of twice?

Thanks, I appreciate your help an assistance.

What do you want to count exactly - just the distinct names in column A perhaps?
 
Upvote 0
Hi All,

I am working on a spreadsheet that has several indentical values. E.g

A1= John Thomas B1= 12/20/2009
A2= John Thomas B2= 12/20/2009
A3= John Thomas B3= 12/20/2009

How do I get use a count formula to count it once instead of twice?

Thanks, I appreciate your help an assistance.
Try this array formula**.

=SUM(IF(FREQUENCY(MATCH(A2:A10&"^"&B2:B10,A2:A10&"^"&B2:B10,0),ROW(A2:A10)-ROW(A2)+1),1))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.

Assumes no empty cells within the range.
 
Upvote 0
Set a cell to =SUBTOTAL(103,A1:A9999)

Then

Under the DATA Tab (Excel 2007) Choose and Advanced Filter.

With:
Filter the list, in-place
Your Range of Data
Check Unique Records Only

You should end up with a filtered list of unique values that will be counted only if they are visible.
 
Upvote 0
Thanks Valco, I tried your formula but it seems to be giving 1 for all the answers. I just wanted it to count one of the values using the name and date as reference and ignore cells A2:A3.

Do you have any other suggestions?

Thanks for your help.
 
Upvote 0
Thanks Valco, I tried your formula but it seems to be giving 1 for all the answers. I just wanted it to count one of the values using the name and date as reference and ignore cells A2:A3.

Do you have any other suggestions?

Thanks for your help.
Let's assume this is your data:

Book1
AB
1NameDate
2John Thomas12/20/2009
3John Thomas12/20/2009
4John Thomas12/20/2009
5Biff1/1/2011
6Biff1/1/2011
7Biff2/25/2011
8Lisa1/1/2011
9Rhonda12/20/2009
10Lisa1/1/2011
Sheet1

This array formula** returns the correct count of 5:

=SUM(IF(FREQUENCY(MATCH(A2:A10&"^"&B2:B10,A2:A10&"^"&B2:B10,0),ROW(A2:A10)-ROW(A2)+1),1))

** array formulas need to be entered using the key combination of CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT key then hit ENTER.
 
Upvote 0

Forum statistics

Threads
1,224,600
Messages
6,179,836
Members
452,947
Latest member
Gerry_F

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