+ Reply to Thread
Results 1 to 3 of 3

Return a specific column of data depending on the content of a cell

  1. #1
    Registered User
    Join Date
    03-15-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    58

    Return a specific column of data depending on the content of a cell

    Hello

    I have 6 columns of data say columns 1 to 6 and depending on the value of another cell (say A1) I would like the data from one of these 6 columns to appear in say column 7.

    So:
    If the value I enter in A1 is say “Y1” I would like the date from column 1 to appear in Column 7
    If the value I enter in A1 is say “Y2” I would like the date from column 2 to appear in Column 7
    If the value I enter in A1 is say “Y3” I would like the date from column 3 to appear in Column 7
    Etc.

    This will then allow me to produce a drop-down box based on Column 7 with a pick list that corresponds to the status of the cell containing the manual input of Y1 to Y6.

    Many thanks

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,794

    Re: Return a specific column of data depending on the content of a cell

    Note that A1 is in column 1 (so your other columns might be 2 - 7 or B to G, with results in column 8, or H).

    Why not just enter 1, 2, 3 instead of Y1, Y2, Y3 ?

    If I were you I'd check out Debra Dalgleish's site on dependent data validation - here's a link to it:

    http://www.contextures.com/xlDataVal02.html

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-15-2012
    Location
    Liverpool
    MS-Off Ver
    Excel 2013
    Posts
    58

    Re: Return a specific column of data depending on the content of a cell

    Pete_UK, thanks for the link. Lots of useful information so managed to sort my problem out from that. Many thanks.
    Last edited by Herr Rommel; 05-11-2012 at 03:57 AM.

+ 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