+ Reply to Thread
Results 1 to 4 of 4

Matching cells and copying the whole row

  1. #1
    Registered User
    Join Date
    01-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    9

    Matching cells and copying the whole row

    Hi All,

    Im sure this has been asked a million times, and me being a noobie, I cant seem to find the answer online.

    Im looking to create a file which has 2 stages, first being where the data is entered and recorded in one worksheet. Second, the data being pulled out according to requirement and displayed in graph & tables.

    I have completed the first part using macro, but stuck on the second part. I have found some formulas online, but cant seem to get the formula right.

    The user inputs the data on 'Comments' worksheet, clicking 'Save Data' the data is saved in 'Data worksheet. In the 'Properties' worksheet, depending on the user selection in F1, the data is copied from the 'Data' worksheet.

    Copy Comment Cards.xlsx

    If anyone can help, it would be greatly appreciated.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Matching cells and copying the whole row

    hi taibe, welcome to the forum. just fix the row reference of the INDEX array & since this is an array formula, press CTRL + SHIFT + ENTER after entering the formula & you'll be fine.
    =IF(ROWS(A$2:A2)<=$H$1,INDEX(Data!A$2:A$50,SMALL(IF($F$1=Data!$A$2:$A$50,ROW(Data!$A$2:$A$50)-ROW(Data!$A$2)+1),ROWS(A$2:A2))),"")

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    01-06-2013
    Location
    london
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Matching cells and copying the whole row

    Wow, so simple answer.

    BTW, why CTRL + SHIFT + ENTER, what does that do?

    Sorry for the noobie question.

    All solved, thanks a million.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Matching cells and copying the whole row

    you're very welcome. they are for array formulas. despite being extremely useful, do note that such formulas slow down Excel. here's a good read on it:
    http://www.cpearson.com/excel/arrayformulas.aspx

+ 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