Formula for a cell number

GetPaidOl9

New Member
Joined
Jul 14, 2015
Messages
19
Hello Friends,

I have a huge spreadsheet with 18 columns and >2000 rows. In column 'N' there is data that change by changing the data in columns 'C', 'D', 'E' and 'G'. On the top of column 'N', I have put the the formula "=MIN(N10:N2087)". I get the ans correctly, but can I get the cell number (in the adjacent cell) which contains that minimum values. I don't want to scroll whole sheet every time when the cell number changes.

Thanks :) in advance.
 
hmmm, what the formula does is it looks for the first instance of the MIN value in the range N10:N2087, then return the corresponding value from column A.. could it be that there are duplicates in column N? or maybe you have to change the column from N to R?

Opss.. silly me... I just copy-pasted the formula.. Done just by changing 'N' to 'R'.

Thank you very much, again.
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Hello Friends,

I have a huge spreadsheet with 18 columns and >2000 rows. In column 'N' there is data that change by changing the data in columns 'C', 'D', 'E' and 'G'. On the top of column 'N', I have put the the formula "=MIN(N10:N2087)". I get the ans correctly, but can I get the cell number (in the adjacent cell) which contains that minimum values. I don't want to scroll whole sheet every time when the cell number changes.

Thanks :) in advance.

In A10 control+shift+enter, not just enter, and copy down:

=IFERROR(SMALL(IF($N$10:$N$2087=MIN($N$10:$N$2087),ROW($N$10:$N$2087)),ROWS($A$10:A10)),"")

This gives the native row numbers on which the MIN value occurs.
 
Upvote 0
In A10 control+shift+enter, not just enter, and copy down:

=IFERROR(SMALL(IF($N$10:$N$2087=MIN($N$10:$N$2087),ROW($N$10:$N$2087)),ROWS($A$10:A10)),"")

This gives the native row numbers on which the MIN value occurs.

Aladin could you please explain your formula cuz many times I saw the same formula you refer to solve the problem with lil changes!
 
Upvote 0
@ jarjarbingie:

Hello,

I told you "it is done by changing N to R" in post # 11.

But now I have another problem, the value (168.62) (image - http://i.imgur.com/li6ETey.jpg) when goes > +1, the result is 01-01-00 (though the minimum value refers to 08-08-15 only). Till 1.00 the result is correct as 08-08-15.

Please suggest correction. Thanks.
 
Upvote 0
I want you to explain the SMALL and ROW functions... Many thanks in advance

01. SMALL acts on numbers.

SMALL({2;3;4},2)

would for example yield 3.

While

SMALL({2;3;FALSE,5},ROWS($A$2:A2))

>>

SMALL({2;3;FALSE,5},1)

>> 2

and

SMALL({2;3;FALSE,5},ROWS($A$2:A4))

>>

SMALL({2;3;FALSE,5},3)

>> 5

02. ROW applied to a reference delivers row numbers (integers).

ROW(A2:A5)

>>

{2;3;4;5}

03. An expression like

IF(A2:A5="x",ROW(A2:A5))

yields row numbers corresponding to cells in A2:A5 which are equal to x. When only A2 = x and A5 = x, we get...

IF(A2:A5="x",ROW(A2:A5))

>>

{2;FALSE;FALSE;5}

SMALL applied on the foregoing above would yield:

2, then 5. These SMALL results can be fed to for example to an INDEX expression.

Hope this helps.
 
Upvote 0
01. SMALL acts on numbers.

SMALL({2;3;4},2)

would for example yield 3.

While

SMALL({2;3;FALSE,5},ROWS($A$2:A2))

>>

SMALL({2;3;FALSE,5},1)

>> 2

and

SMALL({2;3;FALSE,5},ROWS($A$2:A4))

>>

SMALL({2;3;FALSE,5},3)

>> 5

02. ROW applied to a reference delivers row numbers (integers).

ROW(A2:A5)

>>

{2;3;4;5}

03. An expression like

IF(A2:A5="x",ROW(A2:A5))

yields row numbers corresponding to cells in A2:A5 which are equal to x. When only A2 = x and A5 = x, we get...

IF(A2:A5="x",ROW(A2:A5))

>>

{2;FALSE;FALSE;5}

SMALL applied on the foregoing above would yield:

2, then 5. These SMALL results can be fed to for example to an INDEX expression.

Hope this helps.


You are AWESOME!
 
Upvote 0

Forum statistics

Threads
1,223,912
Messages
6,175,340
Members
452,637
Latest member
Ezio2866

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