+ Reply to Thread
Results 1 to 9 of 9

Need simple formula to get data from sheet1 to sheet2

  1. #1
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Need simple formula to get data from sheet1 to sheet2

    I have attached a small version of what I am working on. I need help with this formula.

    The dept numbers in column A on sheet2 are not always in the same order. In the B column of sheet1, I need it to find the dept numbers in column A on sheet1 and Match it with the dept numbers in column A on sheet2 and put the number for that depts grand from column E on sheet2 in column B of sheet1.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Need simple formula to get data from sheet1 to sheet2

    see if this is what you want...
    =INDEX(Sheet2!$E$2:$E$10,MATCH(Sheet1!A2,Sheet2!$A$2:$A$10,0))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need simple formula to get data from sheet1 to sheet2

    Hi.

    In B2 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Need simple formula to get data from sheet1 to sheet2

    In the attached file there are 3 options of how you could go about it. VLOOKUP, INDEX/MATCH and SUMIF.
    Help.xls
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  5. #5
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Need simple formula to get data from sheet1 to sheet2

    Ok Try this version
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Re: Need simple formula to get data from sheet1 to sheet2

    Thank you all very much. All of these work perfectly. Mr. Buttrey I have a question about your formula.... What is this saying? $E$11

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Need simple formula to get data from sheet1 to sheet2

    $ is used to absolute a cell reference, locking it so that when copied, it doesnt change.. it comes in 3 different "flavors...

    $A$1 absolutes the entire cell reference, it will not chance when copied down or across
    $A1 absolutes only the column, "A" will not change when copied across, but "1" WILL change when copied down
    A$1 absolutes only the row, "1" will not change when copied down, but "A" will change when copied across

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Need simple formula to get data from sheet1 to sheet2

    Re#6

    Are you asking why use $E$11?

    In fact the relevant range of the compound formula is $A$2:$E$11 on sheet 2. i.e. the whole of your table. The reference to 5 of course uses the 5th column in the table.

  9. #9
    Forum Contributor
    Join Date
    01-04-2013
    Location
    Arkansas
    MS-Off Ver
    Microsoft Excel 2016
    Posts
    252

    Re: Need simple formula to get data from sheet1 to sheet2

    Got it, A1:E11 is the table the information is in.
    Thank you.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] copy data from sheet1 to sheet2 based on column (A) sheet1 and column (C) sheet2
    By AWITCHER in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 05-13-2014, 03:20 PM
  2. Replies: 6
    Last Post: 07-25-2013, 02:58 PM
  3. [SOLVED] Simple formula to match column A, sheet1, with column A, sheet2, return text answer
    By Connie5761 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-14-2012, 02:56 PM
  4. Replies: 3
    Last Post: 06-06-2012, 05:36 AM
  5. Copy cells from Sheet1 into new rows in Sheet2 a simple condition is met.
    By Mayweed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-31-2011, 03:22 PM

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