+ Reply to Thread
Results 1 to 2 of 2

Complex formula in Google Sheets

  1. #1
    Registered User
    Join Date
    11-06-2022
    Location
    Maryland
    MS-Off Ver
    16.70 (365) & Google Sheets
    Posts
    47

    Complex formula in Google Sheets

    Hi, Can anyone help with this complex formula??

    Two Goals:

    1) SUMIF - Column C = Specific Dept, Add the total in column H (This part I know, but then I need to add date considerations for part 2)


    2) Compute quarterly salary expense by Hire date: ie: if hired in column D - Calculate the total salary expense in H for Q2 2023 per department.


    Thanks for the help!!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    19,052

    Re: Complex formula in Google Sheets

    This proposal adds a column (I) to the source data.
    Column I is populated using: =H3*DAYS(I$2,MAX(I$1,D3))/DAYS(DATE(YEAR(TODAY()),12,31),DATE(YEAR(TODAY()),1,1))
    Note that cells I1:I2 contain the start and end dates of Q2 2023 respectively.
    The total salary expense per department is in column N: =SUMIFS(I$3:I$6,C$3:C$6,M1)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. Google SHeets: Count Checked checkboxes in filtered data of google sheet
    By Faizan Naseem in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 07-07-2022, 05:42 AM
  2. Google Sheets. Can I connect offline data from excel to google sheets?
    By drlemur39 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 3
    Last Post: 11-15-2021, 10:40 AM
  3. [SOLVED] Google sheets vba to download file and save it to google drive folder and use it's data
    By western in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-14-2021, 08:48 AM
  4. dynamic formula to count through existing and new sheets(In google sheets)
    By wlinksanju in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 11-26-2020, 09:16 PM
  5. [SOLVED] Google Sheets - COUNTIF (complex)
    By RLONG98 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 5
    Last Post: 03-19-2020, 01:41 AM
  6. Google Sheets: Simplify a very complex INDIRECT formula
    By Perlapimpim in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 13
    Last Post: 08-03-2019, 09:10 AM
  7. Google Apps Script for Google Sheets Pulling Formulas from Master to Several Slave Sheets
    By excelroofing in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 4
    Last Post: 08-22-2018, 02: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