LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Array problem? List comparison?

Hi Erwin

Try the below in cell D1 and copy down as required.

Please note that this is an array formula. You create array formulas in the
same way that you create other formulas, except you press CTRL+SHIFT+ENTER to
enter the formula. If successful in 'Formula Bar' you can notice the curly
braces at both ends like "{=<formula}"

=VLOOKUP(SMALL(IF($A$1:$A$10C1,$A$1:$A$10),1),$A$ 1:$B$10,2,0)

--
Jacob (MVP - Excel)


"Erwin" wrote:

Hey,

Let me set up what I'm trying to do. I have 3 columns with the
following data.

A: 10, 20, 30
B: X, Y, Z

C: 28, 8, 1

Now, I have a last column, D, which I'm trying to figure out the
correct formula for.
I want D to return the following:
Look at column A, find the smallest number that's greater than the
adjacent cell in column C, and then return the adjacent cell in column
B.

So, in this example, column D should read:
D: Z, X, X

I can't figure this out. I think it has to do with arrays, but I'm not
too sure. If anyone has any insight on how to accomplish this, I would
really appreciate it. Thanks so much!
.

 
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
List Comparison SiH23 Excel Discussion (Misc queries) 3 December 15th 09 01:52 PM
List Comparison Jeremy Excel Discussion (Misc queries) 2 December 2nd 08 11:21 PM
strange problem displaying array in list box Graham Whitehead Excel Programming 1 November 15th 06 02:45 PM
Randomized Paired Comparison Array John Michl Excel Programming 3 October 20th 05 10:46 PM
list comparison sofiane benzaza via OfficeKB.com Excel Worksheet Functions 0 June 10th 05 04:33 PM


All times are GMT +1. The time now is 03:18 AM.

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

About Us

"It's about Microsoft Excel"