A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Help with SMALL formula.



 
 
Thread Tools Display Modes
  #1  
Old May 19th, 2009, 04:05 AM posted to microsoft.public.excel.misc
Scott
external usenet poster
 
Posts: 1,119
Default Help with SMALL formula.

I have a range of 144 rows. A1:A144 contain names, B1:B144 contain values.
I've successfully used the SMALL formula to sort the data 1 through 144, but
I'd like to reference the corresponding names with the values. How do I do
that?
  #2  
Old May 19th, 2009, 04:32 AM posted to microsoft.public.excel.misc
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Help with SMALL formula.

Assuming you have the value generated from SMALL in C1 try the below

C1 =SMALL($B$1:$B$144,ROW())
D1 =INDEX($A$1:$A$144,MATCH(C1,$B$1:$B$144,0))

I assume you dont have any duplicate values

If this post helps click Yes
---------------
Jacob Skaria


"Scott" wrote:

I have a range of 144 rows. A1:A144 contain names, B1:B144 contain values.
I've successfully used the SMALL formula to sort the data 1 through 144, but
I'd like to reference the corresponding names with the values. How do I do
that?

  #3  
Old May 19th, 2009, 07:28 AM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default Help with SMALL formula.

You could also try this set-up. It includes tiebreakers to take care of the
possibilities of ties (or multiple ties) within the values in col B

Source data assumed in A1:B1 down,
names in col A, values (ie numbers) in col B
In D1: =IF(B1="","",B1+ROW()/10^10)
In E1:
=IF(ROWS($1:1)COUNT($D:$D),"",INDEX(A:A,MATCH(SMA LL($D:$D,ROWS($1:1)),$D:$D,0)))
Copy E1 to F1. Select D1:F1, copy down to cover the max expected extent of
source data. Minimize/hide col D. The automated results that you seek will be
returned in cols E and F, viz. an auto-ascending sort of the names and their
corresponding values, by values. Names with tied values (if any) will be
returned in the same relative order that they appear within the source.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"Scott" wrote:
I have a range of 144 rows. A1:A144 contain names, B1:B144 contain values.
I've successfully used the SMALL formula to sort the data 1 through 144, but
I'd like to reference the corresponding names with the values. How do I do
that?

  #4  
Old May 19th, 2009, 05:12 PM posted to microsoft.public.excel.misc
Scott
external usenet poster
 
Posts: 1,119
Default Help with SMALL formula.

There are duplicate values in this table. To determine an exact numeric
value in sorting I used the SMALL formula plus a ranking order of 1-144. So
this formula returns a unique value despite duplicate values. I just need to
match the name with the value.

Max, I tried your formula, but got a VALUE error.



"Max" wrote:

You could also try this set-up. It includes tiebreakers to take care of the
possibilities of ties (or multiple ties) within the values in col B

Source data assumed in A1:B1 down,
names in col A, values (ie numbers) in col B
In D1: =IF(B1="","",B1+ROW()/10^10)
In E1:
=IF(ROWS($1:1)COUNT($D:$D),"",INDEX(A:A,MATCH(SMA LL($D:$D,ROWS($1:1)),$D:$D,0)))
Copy E1 to F1. Select D1:F1, copy down to cover the max expected extent of
source data. Minimize/hide col D. The automated results that you seek will be
returned in cols E and F, viz. an auto-ascending sort of the names and their
corresponding values, by values. Names with tied values (if any) will be
returned in the same relative order that they appear within the source.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"Scott" wrote:
I have a range of 144 rows. A1:A144 contain names, B1:B144 contain values.
I've successfully used the SMALL formula to sort the data 1 through 144, but
I'd like to reference the corresponding names with the values. How do I do
that?

  #5  
Old May 19th, 2009, 11:56 PM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default Help with SMALL formula.

.. Max, I tried your formula, but got a VALUE error.

That means your data in col B is unfortunately mixed
with text/error values besides numbers

You could replace the earlier criteria formula in D1 with this:
=IF(ISNUMBER(B1),B1+ROW()/10^10,"")
Copy down, and it should work fine
Success? Pl click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---

  #6  
Old May 20th, 2009, 02:25 AM posted to microsoft.public.excel.misc
Scott
external usenet poster
 
Posts: 1,119
Default Help with SMALL formula.

Another problem. What happens when there is LESS than 144 rows of data? For
instance, there could be anywhere between 1 and 144 rows. With your formula,
I got it to work with 144 rows, but got an error with less than 144 rows of
data.



"Max" wrote:

.. Max, I tried your formula, but got a VALUE error.


That means your data in col B is unfortunately mixed
with text/error values besides numbers

You could replace the earlier criteria formula in D1 with this:
=IF(ISNUMBER(B1),B1+ROW()/10^10,"")
Copy down, and it should work fine
Success? Pl click the YES button below
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---

  #7  
Old May 20th, 2009, 02:44 AM posted to microsoft.public.excel.misc
Max
external usenet poster
 
Posts: 8,574
Default Help with SMALL formula.

That shouldn't be. The set-up I suggested was independent of the number of
rows of source data. Review it, re-check your adaptation/construct over
there. Ensure that the criteria col D and the extract formulas in cols E and
F are propagated correctly right down to cover the max expected extent of
source data.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:25,000 Files:370 Subscribers:68
xdemechanik
---
"Scott" wrote:
Another problem. What happens when there is LESS than 144 rows of data? For
instance, there could be anywhere between 1 and 144 rows. With your formula,
I got it to work with 144 rows, but got an error with less than 144 rows of
data.


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.