Please help w/formula

pballard

New Member
Joined
Jul 11, 2012
Messages
6
Please help if possible. I do appreciate.

I will attempt to explain as best I can.

Column L is my High Watermark (HWM) Values.
Cell L4 contains a pre-determined value and the formula for Column L begins in L5.
Column L formula is: =SUM(L4+D5-E5-G5-H5-I5-J5+K5) and this formula is copied for all of Column L.

Column M is my Adjusted HWM Values.
The formula for Column M begins in cell M5.
Column M formula is: =SUM(C5-D5+E5+G5+H5+I5+J5-K5) and this formula is copied for all of Column M.

The condition I need is that if the value in cell M5 (which would be our current quarter) is greater than the value in cell L4 (which would be the previous quarter), then both cells M5 and L5 should show value of cell M5. If the value in cell L4 is greater than the value in cell M5, then the formula (L4+D5-E5-G5-H5-I5-J5+K5) would apply in cell L4.

I would attach an example but don't see where this feature is available.

Say the value in cell L7 is $194,239.50 and M8 is $191,092.32. Since L7 is greater than M8, the formula (L7+D8-E8-G8-H8-I8-J8+K8) would apply in cell L8.

I hope this makes sense.

Pamela
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
May be something like this
Code:
=max(SUM(L4+D5-E5-G5-H5-I5-J5+K5),SUM(C5-D5+E5+G5+H5+I5+J5-K5))
in L4 and copy down.
 
Upvote 0
If you are going to use + and - the SUM is not necessary.

=max(L4+D5-E5-G5-H5-I5-J5+K5,C5-D5+E5+G5+H5+I5+J5-K5)
 
Upvote 0
May be something like this
Code:
=max(SUM(L4+D5-E5-G5-H5-I5-J5+K5),SUM(C5-D5+E5+G5+H5+I5+J5-K5))
in L4 and copy down.

I tried that and it didn't work.

If L7 is $194,239.50 and M8 is $191,092.32 then I need the formula (L7+D8-E8-G8-H8-I8-J8+K8) to apply and in column E8 is $5,182 which would mean L8 should be $189,057.50.

Pamela
 
Upvote 0
I tried that one as well and it didn't work.

I tried that and it didn't work.

If L7 is $194,239.50 and M8 is $191,092.32 then I need the formula (L7+D8-E8-G8-H8-I8-J8+K8) to apply and in column E8 is $5,182 which would mean L8 should be $189,057.50.
 
Upvote 0
If the value in cell L4 is greater than the value in cell M5, then the formula (L4+D5-E5-G5-H5-I5-J5+K5) would apply in cell L4.


You can't have a value and replace it with a different value or formula without VBA.

Here is your sheet per your latest post. What is supposed to happen exactly?

Excel Workbook
EFGHIJKLM
6
7$194,239.50
8$5,182.00$191,092.32
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,759
Messages
6,126,722
Members
449,332
Latest member
nokoloina

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