+ Reply to Thread
Results 1 to 2 of 2

Pull data from a specific sheet that matches cell value on Input Sheet

  1. #1
    Registered User
    Join Date
    07-26-2012
    Location
    New York, NY
    MS-Off Ver
    Excel 2010
    Posts
    5

    Angry Pull data from a specific sheet that matches cell value on Input Sheet

    I have multiple sheets in a workbook. I am trying to do a vlookup or if/then formula to match the value in Col.A to the name of a sheet. So the stock ticker "L" is in my first row (row 2) and I want a formula that will look up a certain cell in the sheet that is named "L" - in my case it's the closing price at September month end which is G2. I have several stock tickers I want to do this for. G2 is the location of the price on all of the sheets.

    I tried creating a macro but I'm not all that experienced.Yahoo.xls

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Pull data from a specific sheet that matches cell value on Input Sheet

    hi vaciaravino. if it's always in G2:
    =IF(ISERR(INDIRECT(A2&"!G2")),"",INDIRECT(A2&"!G2"))

    if you need to look up according to the dates, try:
    =IF(ISERR(VLOOKUP(B2,INDIRECT(A2&"!$A$2:$G$10"),7,0)),"",VLOOKUP(B2,INDIRECT(A2&"!$A$2:$G$10"),7,0))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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