#1   Report Post  
Dave E
 
Posts: n/a
Default IF or VLOOKUP?

I have a spreadsheet with a column of ingredients, and another column with
the percentages of each, not necessarily in order. Would I be able to
express the list elsewhere in the sheet but listing the greatest amount of
ingredient first, followed by the next greatest etc.?
Thanks
Dave Eastham


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

Dave,

Something like, assuming the original list in A1:B10

H1: =LARGE($A$1:$A$10,ROW())
J1: =INDEX($B$1:$B$10,MATCH(H1,$A$1:$A$10,0))
and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dave E" wrote in message
...
I have a spreadsheet with a column of ingredients, and another column with
the percentages of each, not necessarily in order. Would I be able to
express the list elsewhere in the sheet but listing the greatest amount of
ingredient first, followed by the next greatest etc.?
Thanks
Dave Eastham




  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

H1: =LARGE($C$1:$C$10,ROW())
J1: =INDEX($D$1:$D$10,MATCH(H1,$C$1:$C$10,0))
and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)

"Dave E" wrote in message


Bob
Works fine if I put figures in the columns you suggest, but in my existing
spreadsheet the numbers are in column C, and the names in column D. When I
substitute into the formula I just keep getting #NUM.
Thanks again
Dave E



"Bob Phillips" wrote in message
...
Dave,

Something like, assuming the original list in A1:B10

H1: =LARGE($A$1:$A$10,ROW())
J1: =INDEX($B$1:$B$10,MATCH(H1,$A$1:$A$10,0))
and copy down

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Dave E" wrote in message "Dave E"

wrote in message
...
I have a spreadsheet with a column of ingredients, and another column

with
the percentages of each, not necessarily in order. Would I be able to
express the list elsewhere in the sheet but listing the greatest

amount of
ingredient first, followed by the next greatest etc.?
Thanks
Dave Eastham




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
make a vlookup using a variable path Alex St-Pierre Excel Worksheet Functions 1 March 2nd 05 11:54 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM
VLOOKUP help SamUK Excel Worksheet Functions 8 November 22nd 04 12:27 AM
VLOOKUP not working Scott Excel Worksheet Functions 3 November 12th 04 08:06 PM


All times are GMT +1. The time now is 02:06 AM.

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

About Us

"It's about Microsoft Excel"