Formula for highlighting number that decrease cell by cell and percentage difference of each cell

excelrater

New Member
Joined
May 17, 2019
Messages
21
This is a little hard to explain but I have two things i would like to achieveI am an extreme newbie so any help even written formulas for me to try would be wonderful

1. What I would like to achieve is starting from cell A2 and working to the right of the cell---> to the next cell B2 if the number is higher in A2 then B2 I want it A2 Highlighted by it being highlighted(A2) it means it is larger then B2. Then go on to the next cell B2 and compare it to the cell on the right C2 if B2 is Higher then C2 then I would like B2 highlighted. And the formula going all the way to J2. so A2 see if it is higher then B2 if it is A2 will be highlighted, then the same for B2 see if it is higher then C2 if it is B2 will be highlighted,then the same for C2 see if it is higher then D2 if it is C2 will be highlighted, then the same for D2 see if it is higher then E2 if it is D2 will be highlighted ALL THE WAY TILL J2. I only want the number that is higher to the next cell to be highlighted starting from left to right.

2.and if possible to show the percentage difference of how much more is A2 higher Then B2 etc.....

I will upload a blank sheet and a sheet where i would like the formula to highlight

any help will be much appreciated.
A2 B2 C2 D2 E2 F2 G2 H2 I2 J2
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="width: 640"]
<tbody>[TR]
[TD="width: 64, align: right"]1. 1089521[/TD]
[TD="width: 64, align: right"]876191[/TD]
[TD="width: 64, align: right"]572320[/TD]
[TD="width: 64, align: right"]362712[/TD]
[TD="width: 64, align: right"]171594[/TD]
[TD="width: 64, align: right"]58012[/TD]
[TD="width: 64, align: right"]59249[/TD]
[TD="width: 64, align: right"]43508[/TD]
[TD="width: 64, align: right"]109115[/TD]
[TD="width: 64, align: right"]142496[/TD]
[/TR]
[TR]
[TD="align: right"]2. 1366944[/TD]
[TD="align: right"]308696[/TD]
[TD="align: right"]92939[/TD]
[TD="align: right"]202550[/TD]
[TD="align: right"]600641[/TD]
[TD="align: right"]180249[/TD]
[TD="align: right"]85376[/TD]
[TD="align: right"]935[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-5000[/TD]
[/TR]
[TR]
[TD="align: right"]3.15995969[/TD]
[TD="align: right"]7151714[/TD]
[TD="align: right"]4205283[/TD]
[TD="align: right"]-719504[/TD]
[TD="align: right"]3082535[/TD]
[TD="align: right"]-620273[/TD]
[TD="align: right"]2055152[/TD]
[TD="align: right"]225922[/TD]
[TD="align: right"]64325[/TD]
[TD="align: right"]-273826[/TD]
[/TR]
[TR]
[TD="align: right"]4. -257062[/TD]
[TD="align: right"]-707224[/TD]
[TD="align: right"]-109865[/TD]
[TD="align: right"]-138332[/TD]
[TD="align: right"]-140853[/TD]
[TD="align: right"]-52331[/TD]
[TD="align: right"]-76367[/TD]
[TD="align: right"]-38930[/TD]
[TD="align: right"]-2988[/TD]
[TD="align: right"]-26591[/TD]
[/TR]
[TR]
[TD="align: right"]5. 0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]6. 0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD="align: right"]7.-1594985[/TD]
[TD="align: right"]-1519345[/TD]
[TD="align: right"]-887009[/TD]
[TD="align: right"]-926182[/TD]
[TD="align: right"]-527912[/TD]
[TD="align: right"]-238779[/TD]
[TD="align: right"]-234317[/TD]
[TD="align: right"]-199310[/TD]
[TD="align: right"]-2988[/TD]
[TD="align: right"]-26591[/TD]
[/TR]
[TR]
[TD="align: right"]8. 0[/TD]
[TD="align: right"]-152060[/TD]
[TD="align: right"]-137265[/TD]
[TD="align: right"]-851788[/TD]
[TD="align: right"]305106[/TD]
[TD="align: right"]13380[/TD]
[TD="align: right"]-11750[/TD]
[TD="align: right"]-5000[/TD]
[TD="align: right"]-22276[/TD]
[TD="align: right"]19461[/TD]
[/TR]
[TR]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

I made an error 7 b2 should not be highlighted
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

Select your data range and create the following conditional format.
Code:
=AND(A2>B2,B2<>"")

Then set the conditional format to be green text.
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

THANK YOU FOR HELPING ME I AM SUCH A NEWBIE CAN YOU PLEASE EXPLAIN IN DETAIL WHAT TO DO AND IF YOU CAN WRITE THE FORMULA IN FULL FOR ME I WOULD APPRECIATE THAT SO MUCH I AM VERY VERY NEW TO FORMULA IMPLEMENTATION. soory about the caps
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

if you can please write the formula from A2 all the way to J2 much much appreciated.
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

You're not putting the formula into any of the cells themselves. Select the cells that have your data. Go to the ribbon and click 'Conditional Formatting' and select 'New Rule'. This will bring up a dialog box. There, select 'Use formula to determine which cells to format'. Then paste the formula from my previous post. There will be a 'Format' button where you can choose how you want to format the cells.
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

thank you i did eactly what you said(Go to the ribbon and click 'Conditional Formatting' and select 'New Rule'. This will bring up a dialog box. There, select 'Use formula to determine which cells to format'.) I used this as the formula this =AND(B2>C2,C2>D2,D2>E2,E2>F2,F2>H2,H2>I2,I2>J2) but it highlights some correctly and some incorrectly is the formula wrong that I wrote?

and thank you so much for taking the time to help me much much appreciated.
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

just paste
=AND(A2>B2,B2<>"")
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

The formula is using relative cell references, so you don't have to manually type in the rest. e.g. C2>D2,D2>E2,E2>F2,F2>H2,H2>I2,I2>J2
 
Upvote 0
Re: Hello Need Help formula for highligting number that decrease cell by cell and percentage difference of each cell

AHH OK SO JUST SELECT ALL THE CELLS I WANT THEN AND PASTE YOUR FOMULA? sorry about caps ok let me try again then.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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