+ Reply to Thread
Results 1 to 6 of 6

How to link data from one tab to a formula in another

  1. #1
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    How to link data from one tab to a formula in another

    Hi

    I have a sheet with 2 tabs. The formula in tab 1 in dependent on the data in tab 2. I need to add another criteria to my formula which references specific text but I'm not sure how to proceed.

    My current formula is =SUMIFS(TOIL!E:E,TOIL!D:D,">="&$C$2,TOIL!D:D,"<="&$G$2,TOIL!D:D,"<=" &NOW(), TOIL!C:C,A5,C5). The additional piece I need is for this to apply only when the text 'BH Toil Accrued' is noted in Col G of the second tab

    In short, in Tab 'Employees', I would like to count in Col D (from D5 onwards) the number hours accruing from Col E (Tab 'Toil') where the text in Col F says either 'BH TOIL accrued' or BH TOIL taken'

    In Tab 'Employees', I would like to count in Col C (from C5 onwards) the number hours accruing from Col E (Tab 'Toil') where the text in Col G says either 'TOIL accrued' or 'TOIL taken'

    Thanks in advance for any help offered

    Siobhan
    Attached Files Attached Files
    Last edited by smbyrnecarey; 07-14-2022 at 09:44 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,681

    Re: How to link data from one tab to a formula in another

    Has this data been desensitised??? |If not, remove it, desensitise it and then post the attachment again.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,681

    Re: How to link data from one tab to a formula in another

    It should be simply a case of adding another criterion:

    TOIL!G:G,"BH Toil Accrued"

    However, your formula seems to have an extra section that should make it throw an error message. What is the C5 doing there?

    =SUMIFS(TOIL!E:E,TOIL!D:D,">="&$C$2,TOIL!D:D,"<="&$G$2,TOIL!D:D,"<=" &NOW(), TOIL!C:C,A5,C5)

  4. #4
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    Re: How to link data from one tab to a formula in another

    Thank you Ali for both your solution and your wholly appropriate advice around desensitisation. The C5 is erroneous. I have updated the attachment without names. I'll just look at the formula again

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,522

    Re: How to link data from one tab to a formula in another

    in C5

    =SUMPRODUCT(SUMIFS(TOIL!$E:$E,TOIL!$D:$D,">="&$C$2,TOIL!$D:$D,"<="&$F$2,TOIL!$D:$D,"<=" &NOW(), TOIL!$C:$C,A5,TOIL!$F:$F,{"BH TOIL accrued","BH TOIL taken"}))

    in D5

    =SUMPRODUCT(SUMIFS(TOIL!$E:$E,TOIL!$D:$D,">="&$C$2,TOIL!$D:$D,"<="&$F$2,TOIL!$D:$D,"<=" &NOW(), TOIL!$C:$C,B5,TOIL!$F:$F,{"TOIL accrued","TOIL taken"}))

    BUT check your data as it has trailing blanks in Column F "BH TOIL accrued " vs BH TOIL accrued" and and be consistent wth text "Taken" vs "taken"
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Registered User
    Join Date
    02-19-2021
    Location
    Wicklow
    MS-Off Ver
    O365
    Posts
    54

    Re: How to link data from one tab to a formula in another

    Hi John

    thank you for your help. With a little bit of jiggery pokery I made it work and more importantly learnt something new

    regards Siobhan

+ 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. Help Please - Need Formula for to Link Spreadsheet Data
    By kcstier in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-09-2020, 04:56 PM
  2. Link Master Formula to Different Data
    By Erik_The_Norseman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-06-2017, 04:18 PM
  3. Use Formula to Link to Data on Different Tab
    By Enolt25 in forum Excel General
    Replies: 1
    Last Post: 03-10-2014, 02:02 PM
  4. Looking for right Formula's to Link Data
    By jaarthur in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-16-2013, 07:43 PM
  5. Formula To Link Partial Data
    By swordswinger710 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2012, 01:12 PM
  6. Excel 2007 : Formula to link data from one cell to another?
    By driveherdown in forum Excel General
    Replies: 2
    Last Post: 10-27-2011, 03:10 PM
  7. [SOLVED] Break a link/formula but keep the data?
    By Task Lead Nicole in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-13-2005, 12:06 AM

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