Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using excel as a database... 2

Status
Not open for further replies.

hopelessliar

Technical User
Apr 29, 2002
89
0
0
GB
I have a table that looks a bit like this:

Jan Feb Mar
Small red 1 2 5
Medium red 4 3 1
small blue 3 2 1
medium blue 2 4 1


Can I return the value at the intersection of the ranges 'Jan' and 'small red'?

I know I can do this using a combination of index, match and vlookup, but I'm hoping that there's a neater way of doing this maybe using the intersection of named ranges?

Any help greatfully received.


 
Tools>Options>Calculation
tick "Accept labels in formulae"

then

='Jan' 'Small Red'

will do what you need. Within a formula a {SPACE} is used as an intersect operator. Alternatively, if you have named ranges, you can do it without "Accept labels in formulae"
Lets say your names are "SmallRed", "SmallBlue", "MediumRed", "MediumBlue", "Jan", "Feb" etc. Your formula would be:

=SmallRed Jan

without changing any options

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Tell me about it !!!

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Un-Be-Flippin-Leavable Geoff! How in Hades do you find out this stuff??

Yet another STAR, Ace [2thumbsup]

Chris

Varium et mutabile semper Excel
 
really no idea !! Was just browsing for something else in the help file and came across the fact that a space is used as the intersect operator. Doesn't work on seperate sheets though :-(

Rgds, Geoff

"Having been erased. the document thjat you are seeking. Must now be retyped"

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top