SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 18-01-09, 12:36 PM   #1
-Ralph-
Guest
 
Posts: n/a
Default HELP! Microsoft Excel doing my head in!!

Anyone good with Excel?

I want to reference a table of values so that when I put the X value in one cell and the Y value in another, it looks up the table and returns the correct value.

I have found looking up an X value OR a Y value in the help, with HLOOKUP or VLOOKUP functions. But this only reads across OR down a table with a single set of values. I want to cross reference across AND down.

The table below is just an example of one I have already created from another purpose and is small enough to lookup values manually, but the table I want to look up hasn't been created yet and it will be much much bigger. The values in the table won't have any mathematical correlation to each other so I can't calculate the result with a formula, it has be a straight table lookup.

Anyone know how to do it in Excel?


Last edited by -Ralph-; 18-01-09 at 12:39 PM.
  Reply With Quote
Old 18-01-09, 01:34 PM   #2
custard
Guest
 
Posts: n/a
Default Re: HELP! Microsoft Excel doing my head in!!

no idea, may need to use a bit of VBA...
  Reply With Quote
Old 18-01-09, 02:13 PM   #3
Baph
Guest
 
Posts: n/a
Default Re: HELP! Microsoft Excel doing my head in!!

The Offset() function is the one you're looking for, combined with Match(). It's probably better to google for examples, but I'll still try here:

Lets assume I have a list of bikes down column A, with a header, so the data we're interested in is A2:A20. In the first row, we have a list of dates, ranging B1:Z1. In this table, we have the name of the rider, for any given bike, on any given date.

To find the rider of the SV650 on 17/01/09, you'd do the following:
=Offset(A1,Match("SV650",A1:A20,0)-1,Match("17/01/09",A1:Z1,0)-1)

NB, the Match()-1 is needed to correct the range values.

HTH.
  Reply With Quote
Old 18-01-09, 02:21 PM   #4
BoltonSte
Member
Mega Poster
 
Join Date: Aug 2003
Location: Back in Bolton
Posts: 1,010
Default Re: HELP! Microsoft Excel doing my head in!!

I'll ask my boss tomorrow, he's always doing this sort of stuff for us, it'll give him something to do as we're working 3-11 this week.

Edit - Never mind then,
__________________
Had an SV or three.
Street triple R - gone but not forgotten.
Now trying the lunacy that is KTM with a Superduke GT. for the pillion capability of course.
BoltonSte is offline   Reply With Quote
Old 18-01-09, 04:27 PM   #5
Mark_h
Member
Mega Poster
 
Mark_h's Avatar
 
Join Date: Aug 2005
Location: Fleet, Hampshire
Posts: 2,448
Default Re: HELP! Microsoft Excel doing my head in!!

http://www.mrexcel.com/

Fixes me every time and I have do do some very weird Excel stuff at times.
__________________
Don't want to be the quickest; don't want to be the best; just want to be the one having the most fun.
XL125Varadero -> Curvy SV650N-Y -> SV1000N-K3 -> Multistrada 1200s Twin-tastic stuff.
Minister for Sustainability
Aliquid prudentissimus delectabiles et intelligentes in adamasset lingua.
Mark_h is offline   Reply With Quote
Old 18-01-09, 05:25 PM   #6
New Leaf
Guest
 
Posts: n/a
Default Re: HELP! Microsoft Excel doing my head in!!

you need a vlookup formula with a hlookup formula nested within it to tell it how many columns to count across from the column with the x value in. you'll need a new row just under the one with the y value in, that just counts up, 1,2,3,4 etc. Its this row that you reference with the hlookup formula.

Well i know what i mean anyway - lol.

I'd do it for ya, but i'm on an old laptop with no excel. If you want to e-mail me the spreadsheet i'll do it as soon as i log on at work tomorrow. would only take a min. drop me pm if u want my e-mail address.
  Reply With Quote
Old 18-01-09, 06:23 PM   #7
Tris
Guest
 
Posts: n/a
Default Re: HELP! Microsoft Excel doing my head in!!

You can do it by conning excell!

Set up a "crib sheet" for the y axis so that it can work out which column the data it needs is in.

Y Axis...Column
0............2
0.5..... ...3
1............4
1.5.........5

Then use the column No it finds in the main vlookup command ->
=VLOOKUP(A2,$E$2:$I$13,(VLOOKUP(B2,K3:L9,2,FALSE)) ,FALSE)

If you PM me your e-mail I'll shoot over the sample spread sheet I worked out as I can't see how to attach anything to a PM

Tris

PS there are probably more sophisticated or faster solutions, but this will work
  Reply With Quote
Old 20-01-09, 10:01 PM   #8
-Ralph-
Guest
 
Posts: n/a
Default Re: HELP! Microsoft Excel doing my head in!!

Thanks for the help guys. I've sure they all work, but I tried Baph's solution as it was the first one, and it works a treat, so especially thanks to Baph.
  Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash.NET - Brivio, Romagnoli - head-to-head QA. NewsBot News 0 02-02-09 05:50 PM
Crash.NET - Rossi, Lorenzo - head-to-head QA. NewsBot News 0 02-02-09 05:50 PM
Crash.NET - Rossi, Lorenzo - head-to-head QA! NewsBot News 0 02-02-09 02:50 PM
MIcrosoft help... aarond Idle Banter 6 10-11-08 08:01 PM
Microsoft Excel anybody? skidmarx Idle Banter 15 19-03-06 07:20 PM


All times are GMT. The time now is 02:23 PM.


Powered by vBulletin® - Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.