Jyggalag

Active Member
Joined
Mar 8, 2021
Messages
445
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi all,

Thanks to some of your great earlier contributions I was able to set up with this formula:

Excel Formula:
=IFERROR(LET(mpos;MATCH(1E+100;G7:K7);
mval;INDEX(G7:K7;mpos);
IF(mval>V7;
RIGHT(INDEX($G$3:$K$3;mpos);2) & " TPC is bigger than TPC MEC by " & TEXT(ROUND(mval-V7;0);"#.##0") & " USD";
""));"")


1729239554849.png


The formula takes my value under column V and subtracts it from the latest column inbetween column F-K. If column F-K is larger, the formula returns the amount it is larger by (540 USD in above example).

I would like to change this formula, so it does the opposite, meaning that it will subtract my value in F-K from my value in V, and inform me if the value in column V is larger and by how much?

I tried myself but it wasnt as simple as I thought! Would greatly appreciate some help :)
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
My attempt would give you :

Excel Formula:
=IFERROR(LET(mpos;MATCH(1E+100;G7:K7);mval;INDEX(G7:K7;mpos);IF(mval<V7;"TPC MEC is bigger than TPC " &  RIGHT(INDEX($G$3:$K$3;mpos);2)& " by " & TEXT(ROUND(V7-mval;0);"#.##0") & " USD";""));"")

Forgive me, as I had to change all the ";" to "," in your formula for my version of Excel. I think I changed them all back, but highlighting just in case you find one I missed..

Rgds
Rob
 
Upvote 0

Forum statistics

Threads
1,224,885
Messages
6,181,588
Members
453,055
Latest member
cope7895

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