+ Reply to Thread
Results 1 to 12 of 12

Combine Formulas Help

  1. #1
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Combine Formulas Help

    Hi there,

    i have 2 formula's require combining but not's not happening for me

    explanation - have a database for staff need to count all employees on list, not counting duplicates ( as some employees down twice due to working area)
    I use the below formula - success

    =SUMPRODUCT(1/COUNTIF('Employees '!A2:A1000, 'Employees '!A2:A1000))

    I then have drop down lists 3, area, department, active - which then filter out the employees depending on what is selected

    =COUNTIFS(Master[Area],$B$2,Master[Department],$D$2,Master[Active],$F$2)
    - this works but it counts the duplication's


    Can someone please put these 2 formulas in 1 ( i'm probably missing something)

    Also i have 2 employees with the same name but different DOB could these to be also added that their counted separately. If an example of database is require - i will add (need to GDPR it 1st )

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Combine Formulas Help

    Vista is a version of Windows, not Office - please update your forum profile with the Office version you are using.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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 Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,913

    Re: Combine Formulas Help

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Re: Combine Formulas Help

    See attached - hope it makes sense - i had to remove a lot of tabs charts

    all names/dob are false
    Attached Files Attached Files

  5. #5
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Combine Formulas Help

    Are you still using Excel 2010? If not, please update your profile. If you have MS365, this becomes much easier ...

  6. #6
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Re: Combine Formulas Help

    updated to say 2010

  7. #7
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,410

    Re: Combine Formulas Help

    It already said Excel 2010 before, so are you saying that this is still the version you are using and that you have not updated to something newer?

  8. #8
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Re: Combine Formulas Help

    Yes, on the PC that i work with within work is 2010

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,531

    Re: Combine Formulas Help

    As to counting distinct employee names/DOB in cell O6, try: =SUMPRODUCT(1/COUNTIFS(E3:E7,E3:E7,F3:F7,F3:F7))
    That said why not just count the distinct ID's?
    As to getting a distinct count by area, department and active, I suppose it could be done using 3 helper columns, but it seems easier to do using a pivot table and slicers as modeled in the attached file.
    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.

  10. #10
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Re: Combine Formulas Help

    Thanks JeteMc, but i should of left of the ID's as these are not distinct ID'd - there are employees without IDs so this is N/A. without ID's can we sumproduct with out duplicates.
    Ive never used the slicer - but spent the weekend learning it currently enjoying it Immensely

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,452

    Re: Combine Formulas Help

    Is this are you looking for?

    Please Login or Register  to view this content.
    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Attached Files Attached Files
    Quang PT

  12. #12
    Registered User
    Join Date
    10-12-2015
    Location
    london, england
    MS-Off Ver
    2010
    Posts
    12

    Re: Combine Formulas Help

    Thank you bebo021999. this works, expect it calculates an extra 6 in the return. Reason: I have 6 employees that work in 3 different areas. the formula provided returns the correct amount and eliminates the duplicates from the total except for these 6 in the over all total. the formula is below (changed to suit the actual spreadsheet. G2= Active status (all, current, ceased )

    {=SUM(IF(Master[Active]=IF(G2="All",Master[Active],G2),IFERROR(1/COUNTIFS(Master[Active],IF(G2="All",Master[Active],G2),Master[Full Name],Master[Full Name],Master[Date of Birth],Master[Date of Birth]),0)))}

+ 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] Combine Two Formulas
    By KINGOFCHAOS17 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-26-2017, 03:02 PM
  2. [SOLVED] Need help to combine two formulas
    By jhudson444 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2016, 04:40 PM
  3. how to combine these two formulas?
    By sam94 in forum Excel General
    Replies: 2
    Last Post: 08-08-2014, 02:04 PM
  4. [SOLVED] Combine formulas if
    By KvdB in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-03-2013, 08:40 AM
  5. [SOLVED] Using Combine macro to combine multiple worksheets - need to modify to paste formulas
    By DLSmith in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 09:07 AM
  6. How do I combine these 2 formulas?
    By Tommy1005 in forum Excel General
    Replies: 1
    Last Post: 02-23-2011, 11:20 AM
  7. Combine 2 formulas
    By Steved in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 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