+ Reply to Thread
Results 1 to 5 of 5

obtaining varying position cell value from different sheet

  1. #1
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    obtaining varying position cell value from different sheet

    Hi guys

    Hope this makes sense.

    I want to automate the process of updating my football stats and have delved into getting my data from the web. I have managed to import a football league onto my "standings" sheet but I want my "strengths" sheet to read it's values from this new "standings" sheet.

    The "standings" sheet is broken down into 2 tables (home & away) one above the other.

    The values I want are Home Games, Away Games, Home Goals For, Away Goals For, Home Goals Against And Away Goals Against from both the home table and the away table. The main problem I have is that the cell information I need is likely to change as I update the league tables from the web. So say one week Team A's data is in row 7 the following week it could be in row 8 so i need the data to correlate with the team name cell in my "strengths" sheet.

    So at the moment Atromitos Home games (cell B8 on my strengths sheet) needs the value from cell C8 on my "standings" sheet but by next week it could need the value from C9.

    Hope this makes some kind of sense.

    Cheers

    Ps I am assuming that I can just just hit the refresh button on the ribbon and the data from the web site will update. Is this correct?

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: obtaining varying position cell value from different sheet

    Take a look in the helpfile at the =VLOOKUP() function

  3. #3
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: obtaining varying position cell value from different sheet

    Thanks for your reply

    OK tried that can't seem to get it to work.

    Can you see a problem with the formula?

    =VLOOKUP(A5,home!$B$4:$C$28,3,0)

    The cell I want to return is currently on my "home" sheet (had to split the standings in to two sheets (home and away) in cell C16. The lookup cell is in B16.

  4. #4
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: obtaining varying position cell value from different sheet

    Hi, your range has 2 columns but you request the 3rd column to be returned. Maybe you ened:
    =VLOOKUP(A5,home!$B$4:$C$28,2,0)

  5. #5
    Forum Contributor
    Join Date
    11-24-2013
    Location
    Huddersfield, England
    MS-Off Ver
    2013
    Posts
    104

    Re: obtaining varying position cell value from different sheet

    excellent thank you, works a treat.

    God only knows where I got the 3 from.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Varying validation drop-downs based on varying cell values
    By navarreman1 in forum Excel General
    Replies: 2
    Last Post: 08-08-2013, 08:13 AM
  2. Replies: 5
    Last Post: 02-07-2012, 04:19 PM
  3. Obtaining Sheet Name
    By jamesstorx in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-18-2011, 07:30 PM
  4. relative position of active cell over multiple sheet
    By endoskeleton in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2011, 09:28 AM
  5. Know exact position of a cell in the Sheet
    By baldomero in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-05-2005, 02:45 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1