+ Reply to Thread
Results 1 to 5 of 5

Determining a value to a cell with potential multiple options

  1. #1
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Determining a value to a cell with potential multiple options

    I am working on a project in which I need to determine the number of possible residents can attend a particular school. The issue I am running into is when a zip code has multiple school options. In those cases the number of residents will be divided amongst the number of schools. Example - 2,000 residents - 4 schools - each would have 500 next to their name in the summary section featured below the data. There are occurrences where it can be up to 7 potential schools for a particular zip code. I have attached an example of what I am trying to accomplish. Thank you.
    Attached Files Attached Files
    Last edited by allnet000; 05-06-2011 at 02:04 PM. Reason: Changing Title per request

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Determining a value to a cell with potential multiple options

    Try:

    =SUMPRODUCT(($D$6:$F$11=A15)*($B$6:$B$11))/COUNTIF($D$6:$F$11,A15)

    copied down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Determining a value to a cell with potential multiple options

    Thank you. The formula provided is not accurately counting if the number of residents is divided by multiple schools. The Smith School appears in Rows 6 & 11. Row 6 has 7,135 residents with 2 schools, therefore each school would receive 3,567.5 and in Row 11 there are 13,068 residents with 3 schools so each should would receive 4,356. Smith School total residents should equal 7,923.5. Using the formula in the previous post Smith School's total is 10,101.5.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Determining a value to a cell with potential multiple options

    Ok, I think I understand more clearly...

    Does this work?

    =SUMPRODUCT(($D$6:$F$11=A15)*($B$6:$B$11)/($C$6:$C$11))

    copied down.

  5. #5
    Registered User
    Join Date
    12-22-2009
    Location
    Maryland, USA
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Determining a value to a cell with potential multiple options

    YES!!! Thank you. I will change the setting of the post to Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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