Highlight Unsorted Values

joszepereira

New Member
Joined
Mar 24, 2020
Messages
8
Office Version
  1. 365
Platform
  1. Windows
Hello.

[Intro]
I have a list of fuel supplies for various cars. In that list, it's registered the date, nr of liters, value(€), km, etc.
I use this data to analyse for example the average consumption, nr of km, etc.
Sometimes there are mistakes when introducing the km and then i have wrong analysis.

[Aim]
I thought that I could highlight all the unsorted values, for example:
CAR | km
A | 1
B | 5
A | 2
B | 3 - HIGHLIGHT
C | 9
C | 4 - HIGHLIGHT

Then, I would correct them.

The question is: how can I do this? OR can i make this in another easier way?

Thank you very much.
José
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Can you post a sample of your data.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Can't use this Add-In because I'm using company laptop.

Here is the data:

DATECARLITERSVALUE €KM
20221201​
ABC
48,79​
78,55​
102271​
20221201​
ABC
45,33​
72,98​
1102626​
error 1 introducing data
20221201​
CDE
58,23​
93,75​
10599​
20221201​
CDE
50,03​
80,55​
11223​
20221201​
F
37,71​
60,72​
2813​
20221201​
RTR
53,38​
85,94​
31490​
error 2 introducing data
20221201​
SF
42,42​
68,3​
49826​
20221202​
RTR
55,43​
89,24​
20890​
highlight next one (error 2)
20221202​
VX
46,82​
75,38​
67271​
20221202​
ABC
61,14​
98,44​
102626​
highlight next one (error 1)
 
Upvote 0
Thanks for that.
How about
Fluff.xlsm
ABCDE
1DATECARLITERSVALUE €KM
220221201ABC48.7978.55102271
320221201ABC45.3372.981102626
420221201CDE58.2393.7510599
520221201CDE50.0380.5511223
620221201F37.7160.722813
720221201RTR53.3885.9431490
820221201SF42.4268.349826
920221202RTR55.4389.2420890
1020221202VX46.8275.3867271
1120221202ABC61.1498.44102626
12
Data Input
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E11Expression=INDEX(E$1:E1,XMATCH(B2,B$1:B1,0,-1))>E2textNO
 
Upvote 0
Solution
Perfect! Thank you very much.
Didn't know the XMATCH function. Very useful.

Best regards.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,557
Members
449,088
Latest member
davidcom

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