+ Reply to Thread
Results 1 to 3 of 3

CALLING A RANGE OF CELLS FROM EXTERNAL SOURCE

Hybrid View

  1. #1
    ANGELICA
    Guest

    CALLING A RANGE OF CELLS FROM EXTERNAL SOURCE

    Hi all,

    This is what I need to do:
    In the talbe that I have, I want to have a cell where every time I enter the
    name of a country, the information of only that particular country (which I
    have stored in another sheet, same workbook) appears in a range of cells
    (A5,B5,C5,D5)...Kind of a sub-table......I have tried many ways but it's late
    and I wanna go home!!!
    Help Please!!!

  2. #2
    Valued Forum Contributor Excelenator's Avatar
    Join Date
    07-25-2006
    Location
    Wantagh, NY
    Posts
    333
    Have you tried VLOOKUP? If you have a range on another sheet called "CountryInfo" that contains the columns (country, col1, col2, col3 etc)
    you could simply use the formula

    Col A
    USA

    Col B
    VLOOKUP(A1,Sheet!2'CountryInfo',2,false)

    Col C
    VLOOKUP(A1,Sheet!2'CountryInfo',3,false)

    Col D
    VLOOKUP(A1,Sheet!2'CountryInfo',4,false)

    etc.

    Hopefully this will resolve your issue and you can go home!!
    ---------------------------------------------------
    ONLY APPLIES TO VBA RESPONSES WHERE APPROPRIATE
    To insert code into the VBE (Visual Basic Editor)
    1. Copy the code.
    2. Open workbook to paste code into.
    3. Right click any worksheet tab, select View Code
    4. VBE (Visual Basic Editor) opens to that sheets object
    5. You may change to another sheets object or the This Workbook object by double clicking it in the Project window
    6. In the blank space below the word "General" paste the copied code.

  3. #3
    ANGELICA
    Guest

    Re: CALLING A RANGE OF CELLS FROM EXTERNAL SOURCE

    Thank you very much....sorry for my late response

    "Excelenator" wrote:

    >
    > Have you tried VLOOKUP? If you have a range on another sheet called
    > "CountryInfo" that contains the columns (country, col1, col2, col3
    > etc)
    > you could simply use the formula
    >
    > Col A
    > USA
    >
    > Col B
    > VLOOKUP(A1,Sheet!2'CountryInfo',2,false)
    >
    > Col C
    > VLOOKUP(A1,Sheet!2'CountryInfo',3,false)
    >
    > Col D
    > VLOOKUP(A1,Sheet!2'CountryInfo',4,false)
    >
    > etc.
    >
    > Hopefully this will resolve your issue and you can go home!!
    >
    >
    > --
    > Excelenator
    >
    >
    > ------------------------------------------------------------------------
    > Excelenator's Profile: http://www.excelforum.com/member.php...o&userid=36768
    > View this thread: http://www.excelforum.com/showthread...hreadid=565422
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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