Count unique cells based on column of blank cells

monkeyharris

Active Member
Joined
Jan 20, 2008
Messages
358
Office Version
  1. 365
Platform
  1. Windows
Hi,

I've managed to get part of my formula to work which counts the number of unique records in column B. I only need it to run a calculation on those cells in G which are blank. Any ideas? Formula is in L5727 as i was testing it there.

2024 Woodford Proactive Calls.xls
ABCDEFGHIJKL
572615/03/241CS22555WOAlina MariaSales-iYesAlina345382
572715/03/241CS22555WOAlina MariaSales-iYesAlina345382910
572815/03/241CS22569WOAlina MariaSales-iYesAlina345382
572915/03/241CS22569WOAlina MariaSales-iYesAlina345382
573015/03/241CS22581WOAlina MariaSales-iYesAlina345382
573115/03/241CS22581WOAlina MariaSales-iYesAlina345382
573215/03/241CS22590WOAlina MariaSales-iYesAlina345382
573315/03/241CS22590WOAlina MariaSales-iYesAlina345382
573415/03/241CS22592WOAlina MariaSales-iYesAlina345382
573515/03/241CS22592WOAlina MariaSales-iYesAlina345382
573615/03/241CS22596WOAlina MariaSales-iYesAlina345382
573715/03/241CS22596WOAlina MariaSales-iYesAlina345382
573815/03/241CS22607WOAlina MariaSales-iYes345382
573915/03/241CS22607WOAlina MariaSales-iYes345382
574015/03/241CS22613WOAlina MariaSales-iYes345382
574115/03/241CS22613WOAlina MariaSales-iYes345382
574215/03/241CS22624WOAlina MariaSales-iYes345382
574315/03/241CS22624WOAlina MariaSales-iYes345382
574415/03/241CS22630WOAlina MariaSales-iYes345382
574515/03/241CS22630WOAlina MariaSales-iYes345382
YTD_Figures
Cell Formulas
RangeFormula
H5726:H5745H5726=IF(I5726=45322,1,IF(I5726=45351,2,IF(I5726=45382,3,0)))
I5726:I5745I5726=EOMONTH(A5726,0)
L5727L5727=SUM(IF(FREQUENCY(IF(LEN(B2:B5789)>0,MATCH(B2:B5789,B2:B5789,0),""),IF(LEN(B2:B5789)>0,MATCH(B2:B5789,B2:B5789,0),""))>0,1))
G5726:G5737G5726=VLOOKUP(B5726,WO_Bronze!$B$2:$J$947,9,FALSE)
 
If I am understanding correctly, try this instead of the formula you currently have in L5727
Excel Formula:
=LET(r,B2:B5789,ROWS(UNIQUE(FILTER(r,r<>""))))

For the added condition, try
Excel Formula:
=LET(r,B2:B5789,IFNA(ROWS(UNIQUE(FILTER(r,(r<>"")*(G2:G5789=""),NA()))),0))
Hi Peter,

As mentioned, the formula's you've provided which start with LET always disappear and replaced with {=#VALUE!}. Below is what's shown in column D.

2024 Woodford Proactive Calls.xls
ABCDEFGHIJ
1Q1 WOODFORD INTERNAL SALES PERFORMANCE
2EmployeeQ1 ContactedQ1 Not ContactedNo. of Accounts with SalesNo. of Sales GeneratedNo of Accounts QuotedNo. of Quotes IssuedNo. of Accounts with Sales-I EntriesNo. of Sales-i EntriesQ1 Performance
3Alina10411061943212948.60%
4Harriet59303237297566.29%
5Jemma37634167374237.00%
6Jo23651522121426.14%
7Mita20372642111035.09%
8Paul7166681173714251.82%
9Tendayi44433754514150.57%
10Zoe37542845202240.66%
11Overall39546830847822947545.77%
12
13Q1 EXTERNAL BDM PERFORMANCE
14EmployeeQ1 ContactedQ1 Not ContactedAccounts with SalesNo. of Sales GeneratedNo of Accounts QuotedNo. of Quotes IssuedNo. of Accounts with Sales-I EntriesNo. of Sales-i EntriesQ1 Performance
15BDM - Jamie686696198715650.75%
16BDM - Jo Amos24449189838585.71%
17BDM - Nick20096292125335221767.57%
18BDM - Steve2121616154191.30%
19Overall313168453165652139965.07%
Statistics
Cell Formulas
RangeFormula
B3:B10,B15:B18B3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!N:N="Complete"))
C3:C10,C15:C18C3=SUMPRODUCT(--(WO_Bronze!J:J=Statistics!A3)*(WO_Bronze!N:N="No"))
D3:D10,D15:D18D3=#VALUE!
E3:E10,E15:E18E3=COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Order",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,1)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Order",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,2)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Order",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,3)
B11:E11,G11,I11B11=SUM(B3:B10)
I3:I10,I15:I18I3=COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales-i",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,1)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales-i",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,2)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales-i",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,3)
J3:J10,J15:J18J3=B3/COUNTIF(WO_Bronze!J:J,Statistics!A3)
J11,J19J11=B11/SUM(B11:C11)
G3:G10,G15:G18G3=COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Quote",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,1)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Quote",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,2)+COUNTIFS(YTD_Figures!$E$2:$E$8394,"Sales Quote",YTD_Figures!$G$2:$G$8394,A3,YTD_Figures!$H$2:$H$8394,3)
B19:E19,G19,I19B19=SUM(B15:B18)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
the formula's you've provided which start with LET always disappear and replaced with {=#VALUE!}.
Are you able to do the following?
  • Confirm that you are doing this in excel 365
  • Put the working formulas back in
  • Remove or disguise any sensitive data
  • Save, close and don't re-open
  • Upload a copy of the workbook to Dropbox or OneDrive or Google Drive etc
  • Provide a publicly shared link here
I can then take a closer look and see if I can replicate the issue.
 
Upvote 0
Are you able to do the following?
  • Confirm that you are doing this in excel 365
  • Put the working formulas back in
  • Remove or disguise any sensitive data
  • Save, close and don't re-open
  • Upload a copy of the workbook to Dropbox or OneDrive or Google Drive etc
  • Provide a publicly shared link here
I can then take a closer look and see if I can replicate the issue.

Hi Peter,
I found the problem, by default it saved as a 97-2013 file. I changed it to xlsx. and the formula's remained this time.
 
Upvote 0
Cheers, glad you got it sorted. Thanks for letting us know. (y)
 
Upvote 0

Forum statistics

Threads
1,215,200
Messages
6,123,601
Members
449,109
Latest member
Sebas8956

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