+ Reply to Thread
Results 1 to 5 of 5

Show data in 2 different ways without having to input cell refs manually?

  1. #1
    Registered User
    Join Date
    08-07-2007
    Posts
    4

    Show data in 2 different ways without having to input cell refs manually?

    I would like to find a way of having 2 different worksheets with the same data, but presented in 2 different ways, and I would like not to have to input the cell references manually.

    So I would like to find an Excel translation of this English statement (for example):

    Look on worksheet 1 column B and find “abc”
    What is the numerical value in column E, same row as “abc”?
    Put this value here.

    I guess ideally, I would like to be able to generalise this:

    What is the text on this sheet in column B?
    Find this text in column B on worksheet 1.
    What is the numerical value in column E, worksheet 1, same row?
    Put this value here.

    But for now a solution to the first would be great!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by annieq
    I would like to find a way of having 2 different worksheets with the same data, but presented in 2 different ways, and I would like not to have to input the cell references manually.

    So I would like to find an Excel translation of this English statement (for example):

    Look on worksheet 1 column B and find “abc”
    What is the numerical value in column E, same row as “abc”?
    Put this value here.

    I guess ideally, I would like to be able to generalise this:

    What is the text on this sheet in column B?
    Find this text in column B on worksheet 1.
    What is the numerical value in column E, worksheet 1, same row?
    Put this value here.

    But for now a solution to the first would be great!
    Hi,

    something like

    =VLookup("abc",Sheet1!B:E,4,False)

    and

    =VLookup(B1,Sheet1!B:E,4,False)

    should do that for you.

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Registered User
    Join Date
    08-07-2007
    Posts
    4
    thanks that's great: I had tried some things with Vlookup, but was guessing a bit at the language.... will try your ideas.

    What does the ,4, bit mean?

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    The '4' in that formula refers to the column number to retrieve from the lookup range. In the formula, the lookup range is 'B:E' (column B through E). The '4' returns the value in the fourth column, which is column E.

    Had you wanted to retrieve the value in column C, that 4 would change to a 2 in this instance.

  5. #5
    Registered User
    Join Date
    08-07-2007
    Posts
    4
    Thanks to both of you: both formulae worked a treat, and info re columns good too, as I had inserted a column in original sheet, and had to convert ,4, to ,5, as a result!

+ 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