Formula to Auto Subtract Cells That Change Weekly

elkerpride

New Member
Joined
Nov 29, 2023
Messages
7
Office Version
  1. 365
Rep (Column A)Sales (Column B)$$ Behind Leader (Column C)
Mike$ 21,527,850.00$ 2,651,193.00
Moe$ 9,672,507.00$ 14,506,536.00
Tony$ 24,179,043.00
Greg$ 23,814,970.00$ 364,073.00

Hello,

Is it possible to use a formula to determine which cell in the Sales Column (Column B) is the highest number and automatically subtract the remaining 3 cells in column B from it, using the respective cell in column C to show the difference?

In the above example, Since B4 is the highest number currently, I would need to take B4 and subtract B2 from it and the result would go in C2 and likewise with subtracting B3 from B4 and placing it in C3 along with B5 from B4.

I get that it is basic subtraction. The issue is the totals (Column B) change weekly and any one of the reps could have the highest number on any given week. There are significantly more reps than the 4 shown so I was hoping to be able to automate this process if possible.

Sorry, I don't know excel lingo that well. Please let me know if any clarification is needed & thanks in advance.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Here you go:

$scratch.xlsm
ABC
1Rep (Column A)Sales (Column B)$$ Behind Leader (Column C)
2Mike$21,527,850.00 $2,651,193.00
3Moe$9,672,507.00 $14,506,536.00
4Tony$24,179,043.00  
5Greg$23,814,970.00 $364,073.00
Sheet8
Cell Formulas
RangeFormula
C2:C5C2=LET(Diff,MAX($B$2:$B$5)-B2,IF(Diff=0,"",Diff))
 
Upvote 0
Hello,

I didn't realize that the people I am sending this update to are using Microsoft 2016 and are getting the #NAME? error when they open it. Assuming this function was not around for 2016 version.

Is there by chance another way to do this where it is compatible with 2016 edition?

If not, I'll make it work...thank you.
 
Upvote 0
This is the equivalent without using LET

Excel Formula:
=IF(MAX($B$2:$B$5)-B2=0,"",MAX($B$2:$B$5)-B2)
 
Upvote 0
Solution

Forum statistics

Threads
1,224,820
Messages
6,181,162
Members
453,021
Latest member
Justyna P

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