Find the difference between two cells until a break in Column values

Simondo1964

New Member
Joined
May 16, 2016
Messages
2
I have the following data which i need to process: -

A B C
Tom 39.57
Tom 117.73 Red
Tom 195.89 Red
Tom 195.89 Amber
Tom 352.21 Red
Jerry 508.53
Jerry 586.69 Red
Jerry 264.85 Green
Jerry 343.01 Red


When the values in A1 and A2 are the same I want to find the difference between B1 and B2 and code it Red, Amber, Green dependant on whether it has gone up, down or stayed the same. when the values in column one change I want the formula to return a blank.

I need the formula that will populate col 3.

Thanks,

Simon.
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi & welcome to MrExcel
In C2 copied down
=IF(A2<>A1,"",IF(B2>B1,"Red",IF(B2=B1,"Amber","Green")))
 
Last edited:
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,215,366
Messages
6,124,516
Members
449,168
Latest member
CheerfulWalker

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