+ Reply to Thread
Results 1 to 4 of 4

Copy Specific Row Using Results of Drop Down

  1. #1
    Registered User
    Join Date
    11-09-2009
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Unhappy Copy Specific Row Using Results of Drop Down

    Hello,

    I have a drop down that copies the selction number to a cell (i.e. 1-19). I want to copy a specific cell from another worksheet based on the selection. The choices begin at G5, which would be the first item in the drop down. The rest of the data is G6-G25. I want to grab the data out of the specific row based on the drop down. Make sense?

    Thanks for your help

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy Specific Row Using Results of Drop Down

    Yes. I think so.

    I use INDEX/MATCH for this, but you can also use VLOOKUP() or LOOKUP() based on some other restrictions about the layout of the table you're searching. INDEX/MATCH has none of those restrictions.

    Here's some sample sheets showing what I think you're looking to do.
    INDEX-MATCH-Simple.xls
    http://www.excelforum.com/attachment...tch-sample.xls

    INDEX/MATCH explanation
    http://www.excelforum.com/excel-gene...ame-row.html#3
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    11-09-2009
    Location
    Charlotte, NC
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Copy Specific Row Using Results of Drop Down

    This seems to be giving me an error?

    =IF(F2="","",INDEX (Power Units'!$G$5:Power Units'!$G$25,MATCH($F2, Power Units'!$H$5:Power Units'!$H$25,0)))

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy Specific Row Using Results of Drop Down

    =IF(F2="", "", INDEX(Power Units'!$G$5:$G$25, MATCH($F2, Power Units'!$H$5:$H$25, 0)))

    You don't list a sheet reference more than once per ref.

+ 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