formula to find which Number has reduced?

snjpverma

Well-known Member
Joined
Oct 2, 2008
Messages
1,584
Office Version
  1. 365
Platform
  1. Windows
45 62 50 82 112

In a row, there are numbers stretching from Let's say (A1 to A10). I would like the output result to be the number which has reduced.
In above example, the result should be 50 because when we go from left to right, 50 is a reduction. From 62 it went down to 50.
Any suggestion?

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Maybe:

AB
14550
26211
350
482
511

<tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B2=LOOKUP(2,1/(A2:A5< A1:A4),A2:A5)

<tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
B1{=INDEX(A2:A5,MIN(IF(A2:A5-A1:A4<0,ROW(A2:A5)-ROW(A2)+1)))}

<tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>



The B1 formula will find the first time a number is less than the row above, the B2 formula finds the last time a number is less than the row above. If you're sure it can only happen once, I'd use the B2 formula since it's shorter.
 
Last edited:
Upvote 0
I'm assuming you mean row and not column (A1:A10 is in a column).


Book1
ABCDEFGHIJK
14562508211212012516020025650
Sheet3
Cell Formulas
RangeFormula
K1{=IFERROR(INDEX($B1:$J1,MIN(IF($B1:$J1<$A1:$I1,COLUMN($B1:$J1)-COLUMN($B1)+1,COLUMN()))),"")}
Press CTRL+SHIFT+ENTER to enter array formulas.


WBD
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,194
Members
449,072
Latest member
DW Draft

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