Conditional formatting not picking up numbers?!

afc171

Board Regular
Joined
Jan 14, 2017
Messages
143
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I am trying to conditional format data which is imported from an MS query. For some reason, I guess the formatting when imported doesn't seem to pick up the conditional formats. This only happens when the data is numbers, works fine with alphanumericals.
Any idea how I can get around this?

I created another sheet (DNO) where the products to lookup are as this might change in the future.

Thanks


Consumables Mastersheet V2.xlsm
B
1product
212004271
312004272
412004403
512004403
61351114
71351118
81351118
91351118
101450016
111610393
121610393
131610396
141610610
151610610
161610737
171610737
181610772
191610772
201610782
211610782
221704157
231704159
241704159
251705061
261705061
275678084
285678124
295678124
QR9.0.12BioRad
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B:BExpression=ISNUMBER(MATCH(B1,DNO!$A:$A,0))textNO
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Have you checked that the numbers in your list and the numbers coming in ARE actually numbers, not text that look like numbers? (use ISNUMBER()) to check both on the sheet. The you could make any adjustments required - by either using value() or appending a null string to force it as text() accordingly - either:

Excel Formula:
=ISNUMBER(MATCH(VALUE(B1),$A:$A,0))
or
=ISNUMBER(MATCH(""&B1,$A:$A,0))
 
Upvote 0
The fact that all the numbers in the image are left-justified seems to suggest that they are actually text entries (numbers entered as text).
Numbers are right-justified, by default.
 
Upvote 0
Try using countifs rather than match
Excel Formula:
=COUNTIFS(DNO!$A:$A,B1)
 
Upvote 0
Solution
Countifs will treat a text number as a real number, whereas match doesn't
 
Upvote 0
Try using countifs rather than match
Excel Formula:
=COUNTIFS(DNO!$A:$A,B1)

Thanks guys, this worked perfectly.

Someone else did say if I select the products and then do Text to Columns it works but would mean to do that everytime.
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,693
Members
448,979
Latest member
DET4492

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