+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    05-20-2008
    Posts
    77

    Exclamation Which Vlookup to use from a cell

    Hi All,
    I have a cell (A6 for instance) that contains 2 products - what i would like is for cell A2 to look at A6 and run the necessary vlookup.
    Example.

    If cell A6 showed "Prod A" - Cell A2 would vlookup from the "Prod A Sheet"
    If cell A6 showed "Prod B" - Cell A2 would vlookup from the "Prod B Sheet"

    Hope this is possible - as it will save a hell of a lot of time.....

    Regards..

    JonesZoid

  2. #2
    Forum Guru zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    5,740

    Re: Which Vlookup to use from a cell

    SOmething like =IF(A6="Prod A";VLOOKUP(A2;....);IF(A6="Prod B";VLOOKUP(...);nO SUCH PROD")?
    "Relax. What is mind? No matter. What is matter? Never mind!"

  3. #3
    Registered User
    Join Date
    05-20-2008
    Posts
    77

    Re: Which Vlookup to use from a cell

    I'll give it ago - and report back later....Thankyou

  4. #4
    Forum Guru
    Join Date
    10-10-2008
    Location
    Northeast Pennsylvania, USA
    MS-Off Ver
    Excel 2003, 2007.
    Posts
    1,413

    Re: Which Vlookup to use from a cell

    JonesZoid,

    You will have to fill in the correct VLOOKUP formulae for the following.

    Try:
    =IF(A6="Prod A",VLOOKUP('Prod A Sheet'……),IF(A6="Prod B",VLOOKUP('Prod B Sheet'….),"")
    Have a great day,
    Stan
    stanleydgromjr
    Windows Vista Business, Excel 2003 and 2007

    If you are satisfied with the solution(s) provided, please mark your thread as Solved by clicking EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

  5. #5
    Registered User
    Join Date
    05-20-2008
    Posts
    77

    Re: Which Vlookup to use from a cell

    No Joy - Formula stopped at the VLOOKUP saying it was an invalid formula.....

    Any Ideas...

    JonesZoid

  6. #6
    Forum Guru contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2010
    Posts
    1,335

    Re: Which Vlookup to use from a cell

    or u cav use INDIRECT funkstion like
    =VLOOKUP(xx,INDIRECT(A1&"A1:B10"),2,0)

    smth like this...
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, «Born in USSR»
    Vusal M Dadashev

    Baku, Azerbaijan

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.2.0