Working with "< >" symbol inside the formula

dannwid

New Member
Joined
Jul 26, 2017
Messages
22
Office Version
  1. 365
Platform
  1. Windows
Hello there,

I'm currently working with data that contains > and < symbol as a parameter to classify my numbers. The case goes like this image below.

1st table is my detailed data, I classify them into 3 category (<=25K, >25K - 50K, and >50K)
In the 2nd table i try to COUNTIFS the AAA to count each category but ny Countifs gives me a wrong result. Column Result is my countifs and column "should be" is my manual counting.

Can you guys tell my what went wrong with my countifs?

MY CASE FILE LINK

Screenshot_10.jpg
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
C13 formula should be
Excel Formula:
=COUNTIFS($B$3:$B$8,$B$11,$D$3:$D$8,"="&B13)
 
Upvote 0
Solution
C13 formula should be
Excel Formula:
=COUNTIFS($B$3:$B$8,$B$11,$D$3:$D$8,"="&B13)

THANK YOU, PETER....

Exactly what i'm looking for. I assumed that it had to do with the <> symbol, but i don't know why and how to solve it.

Can you enlighten me, why we need "="& to add in that formula?
 
Upvote 0
THANK YOU, PETER....

Exactly what i'm looking for.
You're welcome, Glad it helped. Thanks for the confirmation. :)

Can you enlighten me, why we need "="& to add in that formula?
Without the "=" your COUNTIFS is treating the "<=" as meaning "less than or equal to" and not simply as text.
Compare the formulas and results in columns E & F below.

Cell Formulas
RangeFormula
D3:D8D3=IF(C3<=25000,"<=25K",IF(C3<=50000,">25K - 50K",IF(C3>50000,">50K","")))
E3:E8E3=D3<="25K"
F3:F8F3=D3="<=25K"
 
Upvote 0

Forum statistics

Threads
1,224,558
Messages
6,179,512
Members
452,920
Latest member
jaspers

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