+ Reply to Thread
Results 1 to 13 of 13

To get value and cumulative from one sheet to another sheet with matching

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    To get value and cumulative from one sheet to another sheet with matching

    Sir,

    I am making report in excel to track accident/incident report.

    I like to get values from Sheet " Mastersheet " to Sheet " Frontsheet".

    I created a table in both sheet. While i am changing month in sheet " frontsheet" using data validation . I like get values from mastersheet according to month and row header ( like " first aid injury" ) in column period ( front sheet) and cumulative upto month which i selected


    Excel sheet attached.
    Attached Files Attached Files

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

    Re: To get value and cumulative from one sheet to another sheet with matching

    You can use this formula in cell B3 of the Mastersheet:

    =SUM(C3:K3)

    Copy down to the bottom of your table, then you can copy all those formulae across into the other Cumulative columns.

    In the Frontsheet you can use this formula in cell C3:

    =IFERROR(INDEX(Mastersheet!$B$3:$CC$5,MATCH($A3,Mastersheet!$A$3:$A$5,0),MATCH($B$1,Mastersheet!$C$2:$K$2,0)+MATCH(C$1,Mastersheet!$B$1:$CC$1,0)),"")

    and this one in D3:

    =IFERROR(INDEX(Mastersheet!$B$3:$CC$5,MATCH($A3,Mastersheet!$A$3:$A$5,0),MATCH(C$1,Mastersheet!$B$1:$CC$1,0)),"")

    Copy those two formulae down to the bottom of your table, then you can copy that block of formulae across into the next pair of columns, and repeat.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    Re: To get value and cumulative from one sheet to another sheet with matching

    Thanks Pete, for your great support

    Can please do a little more support to get value of cumulative as per month

    Eg : If i am selecting month Mar in front sheet - I am looking to at value from mastersheet is Cumulative + Jan + Feb + mar

    If i am selecting month Jun in front sheet - I am looking to at value from mastersheet is Cumulative + Jan + Feb + mar+apr+may+jun



    Thanks a lot

    have a nice day

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

    Re: To get value and cumulative from one sheet to another sheet with matching

    Change the formula in B2 of the Mastersheet to this:

    =SUM(C3:INDEX(C3:K3,MATCH(FrontSheet!$B$1,Mastersheet!C$2:K$2,0)))

    Copy this down to the bottom of your table, then you can copy all those formulae across into the other Cumulative columns.

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    Re: To get value and cumulative from one sheet to another sheet with matching

    Thanks Pete_Uk


    Thanks for your great support to solve my issue.

    Excellent work.

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

    Re: To get value and cumulative from one sheet to another sheet with matching

    You're welcome - glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    You might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  7. #7
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    Re: To get value and cumulative from one sheet to another sheet with matching

    Pete

    sorry to say, the formula you shared with me, not working showing error, can you check and support me once more

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: To get value and cumulative from one sheet to another sheet with matching

    Post a sample sheet SHOWING the error. It's hard to diagnose something if we can't see it!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  9. #9
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    Re: To get value and cumulative from one sheet to another sheet with matching

    Hi Glenn

    please find attached excel sheet as per your request . I copy and paste the formula on sheet frontsheet ( D3)
    Attached Files Attached Files

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

    Re: To get value and cumulative from one sheet to another sheet with matching

    The formula that I gave you in post #4 is meant to go into cell B3 of the Mastersheet, but you have put it in D3 of the FrontSheet. The formulae for the FrontSheet cells are given in Post #2.

    Hope this helps.

    Pete

  11. #11
    Registered User
    Join Date
    08-23-2017
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    24

    Re: To get value and cumulative from one sheet to another sheet with matching

    Pete,

    Thanks, great it is working now,

    Apologize for my mistake.

    Thanks for your support

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

    Re: To get value and cumulative from one sheet to another sheet with matching

    I've set this up for you in the attached file.

    Hope this helps.

    Pete
    Attached Files Attached Files

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: To get value and cumulative from one sheet to another sheet with matching

    I'm getting confused... In Frontsheet, C3, copied down:

    =INDEX(Mastersheet!3:3,,MATCH(C$1,Mastersheet!$1:$1,0)+MATCH($B$1,Mastersheet!$C$2:$CC$2,0))

    and in d3, copied down:

    =INDEX(Mastersheet!$B3:$CC3,MATCH(FrontSheet!C$1,Mastersheet!$B$1:$CC$1,0))

    Select the yellow shaded cells, copy/paste into the next shaded block, etc...

    I added some missing formulae (yellow shaded cells) in the mastersheet for testing.
    Attached Files Attached Files

+ 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. Replies: 1
    Last Post: 03-19-2018, 08:43 AM
  2. Replies: 4
    Last Post: 05-12-2017, 09:24 AM
  3. Replies: 2
    Last Post: 05-31-2016, 01:55 PM
  4. Replies: 3
    Last Post: 12-10-2015, 02:50 PM
  5. Replies: 5
    Last Post: 02-21-2013, 07:17 PM
  6. Replies: 0
    Last Post: 07-18-2012, 10:28 AM
  7. [SOLVED] Return comment to master sheet after matching to source sheet name and cell number
    By jeffreybrown in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-21-2012, 05:09 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