+ Reply to Thread
Results 1 to 4 of 4

Sum hours if criteria is located accross multiple rows

Hybrid View

  1. #1
    Registered User
    Join Date
    02-05-2015
    Location
    Perth, Australia
    MS-Off Ver
    MS365 Version 2402
    Posts
    17

    Talking Sum hours if criteria is located accross multiple rows

    Hello,

    Looking for a formula which will locate a cost centre within a string of text in a cell, and then sum the corresponding hours booked to that cost centre.

    Example attached.

    Thanks geniuses!!

    example.xlsx

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Sum hours if criteria is located accross multiple rows

    Maybe

    =SUMIF(F:F, B2&"*", G:G)

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    Win10/MSO2016
    Posts
    12,965

    Re: Sum hours if criteria is located accross multiple rows

    =sum(--isnumber(search("*"&c2&"*",f2:f7))*g2:g7)
    Ben Van Johnson

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,234

    Re: Sum hours if criteria is located accross multiple rows

    Administrative Note:

    Is your forum profile up-to-date and showing ONLY the oldest Excel PRODUCT that you need this to work for?

    Members will tailor the solutions they offer to the Office PRODUCT (Excel, NOT Windows) that you have. Please check that your forum profile is up-to-date in this respect. If you aren't sure, in Excel go to File | Account and report what it says below the MS logo at the top of that page. If your product is for Mac, please also state this.

    The three most recent Excel products are Excel 2019, Excel 2021, Excel 2024 and MS365 - if you are using MS365, please give this name along with the version number in your profile (e.g. MS365 Version 2306). This is in the About Excel section further down the Account page.

    Thanks.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

+ 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] Sum multiple criteria that is pasted but located in different columns
    By PitchNinja in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-12-2021, 10:57 AM
  2. [SOLVED] Counting items based on criteria located in multiple columns
    By nabok in forum Office 365
    Replies: 10
    Last Post: 08-04-2021, 05:41 AM
  3. How to enter rows of data accross multiple sheets and keep the formulas intact?
    By Djbuff44 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-10-2014, 05:32 PM
  4. Concatenate accross multiple rows with blanks
    By moxidon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-28-2013, 06:21 PM
  5. Merge all rows when specific word appears accross multiple worksheets
    By Esdale in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-12-2012, 09:11 AM
  6. Countif accross Multiple Ranges & 1 Criteria
    By rvc81 in forum Excel General
    Replies: 10
    Last Post: 03-18-2012, 10:48 AM
  7. Merging Cell contents accross multiple rows
    By Sugar Ape in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-14-2009, 12:23 PM

Tags for this Thread

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