+ Reply to Thread
Results 1 to 5 of 5

Having problems with SUMIFS and trying to get an extra condition in

  1. #1
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    MAC OFFICE 365
    Posts
    3

    Having problems with SUMIFS and trying to get an extra condition in

    Hi,

    Four people are having a party, they are inviting a number of people who are the same, in some cases they all know the same people. If this is the case then YES will be in each "named column" ie Amanda, Craig, Jason & James and the value 4 will be in % Value column. The same is true for only three YES, two YES and One YES.

    Using the following formula I am able to workout what the total number of people invited is by dividing guests up ie if only one person has invited somebody(s) (maybe a couple) then there is only one YES in a "named column" but those people are counted in.

    [=SUMIFS(G12:G538,K12:K538,"1")+(SUMIFS(G12:G538,K12:K538,"2")/2)+(SUMIFS(G12:G538,K12:K538,"3")/3)+(SUMIFS(G12:G538,K12:K538,"4")/4)

    What I'm trying to workout is how many proportional people each person has invited ie if all 4 "named column's" are a YES and that invite was to two people - then each person has 0.5 of a person as part of their budget.
    So I need an enclosing type of SUMIFS that would be able to ie. check that for "JUST" the James column with a YES in it do the above formula and return the total number of people James has only invited or invited with one or more of the other party holders. I intend to do this for each "named column" and for each category of Invited, Unsure, Accepted.

    Believe me the party should be great :-/

    Many thanks for any help

    James...
    Attached Files Attached Files
    Last edited by JimNoel; 01-30-2017 at 05:27 AM.

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

    Re: Having problems with SUMIFS and trying to get an extra condition in

    I read this about 10 hours ago and it made no sense to me at all. I've just looked at it again and I still don't quite understand what you want. I've made a bit of a mad guess. see blue shaded cells. It would be rather more help if you catually shiwed us you (manually calculated) results, explaining how you got them. Giving us a formula that doesn't work is of limited value....

    So far as I can see there are a total of 10 people invited and you want some sort of way of assigning proportionally how many of that 10 were invited by each of your four people.

    To be honest, I also think it would be more help conceptualising this if we knew what data you are actually working with. A party where 0.3 of a person is invited does sound a bit grizzly!!
    Attached Files Attached Files
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    MAC OFFICE 365
    Posts
    3

    Re: Having problems with SUMIFS and trying to get an extra condition in

    Dear Glenn,

    Many thanks for taking the time to try and understand what I was trying to achieve.
    I think you are partly there. What I was hoping for is something like this:

    If there is a YES in the James column and blanks in Amanda, Jason & Craig then the number of guests in the Invited column is added to James's total of Invited guests
    If there is a YES in the James column and ONE other party organiser then the number of guests in the invited columns (for James and other party organiser) is divided by 2 between James and that ONE other party organiser ie 2 guests divided by 2 = 1 added to each of those two totals ie James & Amanda
    If there is a YES in the James column and TWO other party organisers then the number of guests in the invited column is divided by 3 between James and those TWO other party organiser ie 2 guests divided by 3 = 0.67 added to each of those three totals
    If there is a YES in the all columns (James, Amanda, Jason & Craig) then the number of guests in the invited column is divided by 4 and equally between all the party organiser ie 2 guests divided by 4 = 0.5 added to each of their totals

    I will try and test your solution - but maybe you will know already whether it will achieve these results
    Many thanks again for your interest in this odd problem
    James...

    I have had a further look and am not sure I entirely understand your approach (not that I know anything :-). But one thing I did want to achieve is finding out once everybody has submitted there guest lists is:
    How many proportional people Amanda, James, Craig & Jason have invited each.
    How many proportional people Amanda, James, Craig & Jason are still unsure (each) (at any one time).
    How many proportional people Amanda, James, Craig & Jason have accepted (each) (ie are coming).
    Last edited by JimNoel; 01-30-2017 at 08:35 AM.

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Having problems with SUMIFS and trying to get an extra condition in

    Hi,

    This is also something of a shot in the dark but perhaps
    =SUMPRODUCT(--($F$12:$F$17="Yes"),$G$12:$G$17,1/$K$12:$K$17)
    for James.

    Edited: having now looked at Glenn's workbook, it appears I have made the same guess albeit using only the existing columns you had.
    Last edited by xlnitwit; 01-30-2017 at 08:37 AM.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  5. #5
    Registered User
    Join Date
    01-29-2017
    Location
    UK
    MS-Off Ver
    MAC OFFICE 365
    Posts
    3

    Re: Having problems with SUMIFS and trying to get an extra condition in

    Hi xinitwit,

    I hope my attempt at further describing what I was trying to achieve has enabled you to take your shot in the dark further. I got the sense with Glenn's attempt that he was getting there. However, not that I fully understood how his formula were working etc etc but if there were all YES's in the cells $C$12:$F$17 then the totals for Amanda, Craig, Jason & James should be 2.5 each with a grand total of 10 (as there are only 10 possible people invited). But if you play around with his solution and omit some of the YES's the grand total does not always add up to 10 and it should. So I don't think Glenn has quite got it and I'm not sure how to apply your formula.

    Any further suggestions would be gratefully appreciated.
    James...

+ 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] Comparing dates with extra condition
    By Wayprof in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-09-2013, 12:25 PM
  2. Help to add an extra condition in IF formula
    By KELLIS in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 01:57 PM
  3. Problems adding extra conditions to an IF formula
    By Hypex in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-20-2013, 08:55 AM
  4. Count excluding duplicates with an extra condition
    By konradk in forum Excel General
    Replies: 2
    Last Post: 09-20-2011, 10:39 AM
  5. Inserting extra row based on condition
    By nobleprince in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2010, 08:40 PM
  6. Adding an extra condition to an IF statement
    By Gooford in forum Excel General
    Replies: 6
    Last Post: 11-18-2009, 07:49 AM
  7. Modify a Function to add an extra condition
    By King_Quake in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-03-2008, 04:32 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