Issue with formula recognising some entries

ozbeachbum

Board Regular
Joined
Jun 3, 2015
Messages
237
Office Version
  1. 2021
Platform
  1. Windows
Hi,
I am using the following formula and for some unknown reason it will pick up most of the entries but with some it spits the dummy if they have or have not certain text of symbols.

=SUM(IF(COUNTIFS($IX$70:$IX$340,$IX$70:$IX$340,$JR$70:$JR$340,"<>"),1/COUNTIFS($IX$70:$IX$340,$IX$70:$IX$340&""),0))

Unable to use XL2BB as the number of cells is to big and don't see anywhere a file can be attached so I have uploaded an image.
Any thoughts or suggestions would be greatly appreciated.
Cheers. 240802 error formula IX JR.png
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
First, you don't necessarily need to show the whole range of cell with XL2BB, just a representative sample. If you can find a smaller section that shows the issue, that's usually enough.

Second, that formula looks to be the "old-fashioned" way to count unique values. Is that what you're doing? In Excel 2021 and Excel 365 there are newer functions that do the same thing much simpler. I believe your formula could be replaced with:

=ROWS(UNIQUE(FILTER(IX70:IX340,IX70:IX340<>"")))

You can use the FILTER to ignore certain text or symbols too.
 
Upvote 0
Thank you so much for your reply.
I am away at the moment but as soon as I return I will let you know how I go.
 
Upvote 0
Still having issues, trust that mini sheet might help.
My endeavour is to have the formula calculate the number of entries in column IX that have a corresponding entry in column JR.

240802 error formula IX JR.xlsx
IWIXIYIZJAJBJCJDJEJFJGJHJIJJJKJLJMJNJOJPJQJRJSJTJUJV
62Eric's Formula07
63Row/ColumnIXJR
64
65Formatted as GENERAL, Formatting as TEXT makes no difference.06
66
67
68067
69
7070Bogangar Body Corp:101DE1
71
7272Expenses Redraw Average:101DE2If there is a COLON at the END it is NOT COUNTED.
73
7474Mortgage Payment Fortnightly Minimum:10304
75
7676Mortgage Payment Fortnightly Minimum:10304
77
7878Mortgage Payment Fortnightly Minimum:10304
79
8080Blank Row:101DE3
81
8282Southport:101DE4
83
8484Expenses Redraw Average:1DE5
85
8686RES02 Body Corporation:10304de6
87
8888Gold Coast City Council [Rates Property]:10304de7
Blank (2)
Cell Formulas
RangeFormula
IZ62IZ62=ROWS(UNIQUE(FILTER(IX70:IX340,IX70:IX340<>"")))
IZ65,IZ68IZ65=SUM(IF(COUNTIFS($IX$70:$IX$340,$IX$70:$IX$340,$JR$70:$JR$340,"<>"),1/COUNTIFS($IX$70:$IX$340,$IX$70:$IX$340&""),0))
JR68JR68=COUNTIF(JR70:JR340,"?*")
JT70JT70=IF(IX70<>"",1,0)
IW72,IW88,IW86,IW84,IW82,IW80,IW78,IW76,IW74IW72=IW70+2
JT72,JT88,JT86,JT84,JT82JT72=IF(IX72<>"",JT70+1,0)
JT80JT80=IF(IX80<>"",JT72+1,0)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
JR70:JR207Cell Valuecontains "DE"textYES
IX68Expression=$JR$66>#REF!textYES
IX68Expression=$JR$66=#REF!textYES
IX68Expression=$JR$66<#REF!textYES
JR68Expression=$JR$66>#REF!textYES
JR68Expression=$JR$66=#REF!textYES
JR68Expression=$JR$66<#REF!textYES
JJ70:JJ207Cell Value=4textYES
JP70:JP207Cell Value=7textYES
JN70:JN207Cell Value=6textYES
JL70:JL207Cell Value=5textYES
JD70:JD207Cell Value=1textYES
JF70:JF207Cell Value=2textYES
JH70:JH207Cell Value=3textYES
 
Upvote 0
I have done more testing and have ascertained that the original formula I provided will not count any repeated entries in IX.
Hoping this helps.
 
Upvote 0
Try:

Excel Formula:
=ROWS(UNIQUE(FILTER(IX70:IX340,(JR70:JR340<>"")*(RIGHT(JR70:JR340)<>";"))))
 
Upvote 0
I thought you didn't want duplicates? If you do, just take out the UNIQUE:

Excel Formula:
=ROWS(FILTER(IX70:IX340,(JR70:JR340<>"")*(RIGHT(JR70:JR340)<>";")))
 
Upvote 0
Solution
Thank you so much for all your time, greatly appreciated.
Cheers,
Dave.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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