How do I create an equation to determine the salary increase here

ezzat

New Member
Joined
Dec 26, 2024
Messages
11
Office Version
  1. 2016
Platform
  1. Windows
JanFebMarAprMayJunJulAugSepOctNovDecTotal
Increase
230028752875287528753625362536253625362536253625
100025003250325032503250325032503250
1500287528753625362536253625362536256500
287528752875362536253625
25003250325032506000
1000 25003250325032505000
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Assuming that you want to subtract the first entry in each row from the last entry in each row, try this formula (assuming first range is A2:L2):
Excel Formula:
=LOOKUP(2,1/(A2:L2<>""),A2:L2)-INDEX(A2:L2,MATCH(TRUE,A2:L2>0,0))

Proof:
1735828289091.png
 
Upvote 0
Thanks , put not aworking
I am not sure what that means. Are you saying it is not working?
As I demonstrated, it is working for me.

Can you show us the results you are getting?
Are you blank cells really blank, or are there formulas or spaces in them?
 
Upvote 0
It works just fine for me, which leads me to believe that either you are not applying the formula correctly or there is something else you are not telling us.

1735830373154.png


Can you do the following things?

1. Confirm the version of Excel you are using using commas (,) and not semi-colons as the separators for arguments in your formulas.
2. Show us a screen print that show your column and row headers so we can see exactly what rows and columns your data is in.
3. Show us the exact formula you are using that is returning this #VALUE error.
 
Last edited:
Upvote 0
Can you try breaking up the formula into two pieces?
Enter them in any two blank cells, and see if either one returns a value or an error?
Excel Formula:
=LOOKUP(2,1/(D5:O5<>""),D5:O5)
and
Excel Formula:
=INDEX(D5:O5,MATCH(TRUE,D5:O5>0,0))

Also, can you please confirm that your version of Excel uses commas or semi-colons between arguments when entering formulas?
 
Upvote 0
Great way of attaining the first entry INDEX(A2:L2,MATCH(TRUE,A2:L2>0,0)), I was thinking of using MIN when I first saw this but thought that maybe the wrong way to approach it.
 
Upvote 0

Forum statistics

Threads
1,225,754
Messages
6,186,825
Members
453,377
Latest member
JoyousOne

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