Consulting

Results 1 to 4 of 4

Thread: Retrieve the values

  1. #1
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location

    Retrieve the values

    Hi,

    Please assist with the below requirement.

    Set of fields for which value to be retrieved based on the company code and the month.

    Eg. Company code - 1000, month - Jan. These are the two condition fields for which values like Value 1, VAlue2, Value3.....Value 6 inputs to be retrieved in a sheet named consolidate. source data to retrieve the values will be in the same file with the sheets named as month. In this case, the criteria is "Jan" hence it should retrieve the values from the Jan sheet.
    Similarly if i change the company code the field values should change accordingly

    - Sindhuja

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Don't understand. Suggest you draw up a worked through example.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Mentor
    Joined
    Sep 2007
    Posts
    405
    Location
    Sample worksheet has been attached for the reference.

    -Sindhuja
    Attached Files Attached Files

  4. #4
    Administrator
    VP-Knowledge Base
    VBAX Grand Master mdmackillop's Avatar
    Joined
    May 2004
    Location
    Scotland
    Posts
    14,489
    Location
    =VLOOKUP($B$1,INDIRECT(B$3 &"!$A:$G"),ROW()-2,FALSE)

    Please don't be so mean with sample date. If you can't take the time to make it up, why should we?
    MVP (Excel 2008-2010)

    Post a workbook with sample data and layout if you want a quicker solution.


    To help indent your macros try Smart Indent

    Please remember to mark threads 'Solved'

Posting Permissions

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