+ Reply to Thread
Results 1 to 13 of 13

Update data in sheet from another sheet when the relevant value is entered into a cell

  1. #1
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Update data in sheet from another sheet when the relevant value is entered into a cell

    I have searched for this but I have no idea what kind of fuction this is so I can't find any information on how to do this. In sheet 1 I have data that tracks information by Month. What I want is for sheet 2 to automatically update information for the correct month and month to date when you select that month in cell A1. I hope this makes some kind of sense? Sheet 2 is a reporting tab which includes graphs and I want them to update accordingly. I'm sure there must be formulas that can do this?!
    Thanks

  2. #2
    Forum Contributor
    Join Date
    10-31-2012
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2003/2007
    Posts
    145

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    ea223,

    Do you have an example that I would be able to mess with?


    Simeon

  3. #3
    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,939

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    you probably need to use a vlookup or index/match, but without seeing what you are working with, its hard to say. as suggested. you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

  4. #4
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    Thanks both, sorry I should have attached this first. Here is a very basic version. On sheet 1 is the data for all months and Sheet 2 is a reporting sheet, I want to be able to select the appropriate month in cell a1 and the data in the table beneath to update accordingly. Anything highlighted in red is to be updated.
    Attached Files Attached Files

  5. #5
    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,939

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    try this. Note though, that it would be better if you had consistent headings for rows and columns...
    =INDEX(Sheet1!$A$5:$M$17,MATCH("% of "&Sheet2!$A22,Sheet1!$A$5:$A$17,0),MATCH(Sheet2!$A$21,Sheet1!$A$5:$M$5,0))

    if you make you're row headings the same (Dark becomes % of Dark), then you can use this instead...
    =INDEX(Sheet1!$A$5:$M$17,MATCH(Sheet2!$A26,Sheet1!$A$5:$A$17,0),MATCH(Sheet2!$A$21,Sheet1!$A$5:$M$5,0))

  6. #6
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    Thank you I will try this when I get back to my computer and let you know how I get on.

  7. #7
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    Hey, sorry I'm confused, where am I supposed to put that formula? In all the cells that I want the infomation to come up in?
    Thanks

  8. #8
    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,939

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    Yes, start in B22. if you need help with the formulas in D, let me know

  9. #9
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    hmm for some reason it doesn't work, it shows as #N/A.. and when I paste the formula into A21 it says circular reference warning, perhaps because I don't have headings for this?
    thanks

  10. #10
    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,939

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    I just opened you're file again, and copied my formula (the 1st 1) into B22 on sheet2, and ity worke4d fine?

    see the attached, perhaps you have changed you're file layout after you uploaded?
    Attached Files Attached Files

  11. #11
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    Ok I think I've figured it out, thank you!

  12. #12
    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,939

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  13. #13
    Forum Contributor
    Join Date
    10-18-2012
    Location
    new york
    MS-Off Ver
    Office 365
    Posts
    177

    Re: Update data in sheet from another sheet when the relevant value is entered into a cell

    thanks, forgot to mark it as solved but done now. i added to your reputation earlier

+ 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