What formula to use when looking up a value not in ascending order

Craig4670

Board Regular
Joined
Feb 10, 2010
Messages
71
Hello:

I have a question in regards to looking up a value from a list not in ascending order. I am not sure what formula(s) to use to return the value needed. I have tried using the index and match formula, but the result comes up as #NA. Any help would be appreciated.


SupplierYearly SpendTop X Data SupplierXYearly SpendX
SupplierA$1,552.00SupplierV1804
SupplierB$1,564.00SupplierU1792
SupplierC$1,642.00SupplierT1780
SupplierD$1,588.00SupplierS1768
SupplierE$1,600.00SupplierR1756
SupplierF$1,612.00SupplierQ1744
SupplierG$1,624.00SupplierP1732
SupplierH$1,636.00SupplierO1720
SupplierI$1,648.00SupplierN1708
SupplierJ$1,660.00SupplierM1696
SupplierK$1,672.00SupplierL1684
SupplierL$1,684.00SupplierK#N/A
SupplierM$1,696.00SupplierJ#N/A
SupplierN$1,708.00SupplierI#N/A
SupplierO$1,720.00SupplierC#N/A
SupplierP$1,732.00SupplierH#N/A
SupplierQ$1,744.00SupplierG#N/A
SupplierR$1,756.00SupplierF#N/A
SupplierS$1,768.00SupplierE#N/A
SupplierT$1,780.00SupplierD#N/A
SupplierU$1,792.00SupplierB#N/A
SupplierV$1,804.00SupplierA#N/A

<tbody>
</tbody>

Thanks!
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
try below in D2

=LARGE($B$2:$B$23,ROW()-1)

and i think your formula will too work u just need to Lock Range Using $ Sign
 
Last edited:
Upvote 0
Try making an exact match, assuming this is the method you are using.

=INDEX(B:B, MATCH(C2,A:A, 0))
 
Upvote 0
can you please post your formula now what formula are you using ?
 
Upvote 0
Thank you for your response. It did the same thing as the vlookup did. I still came out with #NA.
 
Upvote 0
Yes, I was using a vlookup, but it does not work correctly if the data is not in ascending order.
 
Upvote 0
Try setting the vlookup to FALSE

=VLOOKUP(C2, $A$2:$B$23, 2, FALSE)
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,331
Members
449,077
Latest member
jmsotelo

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