+ Reply to Thread
Results 1 to 12 of 12

Need One Formula to Divide the Sum of One Column By Another

  1. #1
    Registered User
    Join Date
    02-15-2016
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    8

    Need One Formula to Divide the Sum of One Column By Another

    Greetings,

    I can do this the 'easy' way by summing two separate ranges in two separate cells and dividing one by the other; however, I am trying to build a tool that can be copied and pasted into a bunch of different uniform excel documents that calculates total percentages.

    So, for instance, in the attached example, for each program year I need to add up the number of eligible individuals with positive outcomes for reading writing, math, and workforce prep and then divide that number by the total number of eligible individuals for the same rows in the eligible individuals column.

    Essentially, I need to know the overall percentage of students for a program that achieved a positive outcome; and since this is meant to be a tool that can be copied and pasted into existing excel workbooks, I would love it if I could do this entire operation with a single formula in a single cell as to not create a (potential) confusing mess for the end user.

    Any help would be appreciated!
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need One Formula to Divide the Sum of One Column By Another

    it is difficult to devise a formula where there is no data. Your sheet is nothing but blank cells other than your titles in different cells.
    I suggest you reload a workbook WITH data AND expected results - even if they are hand entered.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need One Formula to Divide the Sum of One Column By Another

    Advice

    1. I would suggest to not using merge cell
    2. sum formula, for example

    at cell D10

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    02-15-2016
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    8

    Re: Need One Formula to Divide the Sum of One Column By Another

    You can put in whatever data you'd like. Essentially this is meant to be used in a grant scoring document. Grant RFA's are submitted, and the governing federal law (US) stipulates that in order to be an 'eligible applicant' an organization must meet the demonstrated effectiveness standard.

    So really, at the end of the day, what I am asking will be part of an entire table that can be copied and pasted into these submissions to easily determine whether or not an applicant meets that standard. My 'expected result' for this portion of the table is that an accurate percentage is calculated when I sum the values in the reading, writing, math, and workforce prep rows for each program year under the "Number of... individuals with demonstrated improvement..." column and divide that by the sum of the same rows (for each year) under the "Number of... Individuals Enrolled..." column.

    So far that purpose you can just dump test values into each cell.

    Edit

    Like I said, I could do this the 'easy' way by summing one range in one cell, and another range in the other, then dividing the two cells; however, I want this to be as streamlined as possible as I know creating the extra cells + values is going to confuse some of the end users.
    Last edited by ZombieL; 04-14-2020 at 10:19 AM.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need One Formula to Divide the Sum of One Column By Another

    I can do this the 'easy' way by summing two separate ranges in two separate cells and dividing one by the other; however, I am trying to build a tool that can be copied and pasted into a bunch of different uniform excel documents that calculates total percentages.
    I don't know what your data looks like, what cells you are summing nor what cells you are wanting to divide by, formulas need things to point to so something can be summed and something can be divided into it.

  6. #6
    Registered User
    Join Date
    02-15-2016
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    8

    Re: Need One Formula to Divide the Sum of One Column By Another

    Part of the problem is the format in which the data was submitted--exactly like the sample I already included. We have two overarching columns broken down further into program years. The first is the 'number of eligible individuals enrolled' and the second is 'number of eligible individuals with demonstrated improvement.'

    Then the rows correspond to subject areas: reading, writing, mathematics, English language acquisition, civics + citizenship education, and workforce prep.

    The criteria for 'demonstrating effectiveness' that I alluded to earlier, are whether or not the applicant achieved a particular success rate for each year. The complication here is that I cannot just use the sums in the totals row for this calculation because there are separate criteria for 'regular students' and 'English as a second language' students; and the way the data was submitted provides information on both in the same column.

    This is why I need to sum the values in the rows 4, 5, 6, and 9 in column HI and then divide that by the sum of the values in the same rows under DE (as this represents the 'regular' students.) Eventually I will have to do the same for the ESL student data; however, once I figure out how (if it can be done) to do this whole operation with a single formula for the 'regular' students, I can just copy the format for the ESL students.

    Does this make sense?

    Fake Edit

    See the sample 3 attachment. My goal is to calculate the percentage found at R10 without first having to sum the ranges in separate cells (like I did here in cells P10 and Q10).

    Really, thanks for the help in general, and for the help in walking me through how to ask the question.
    Attached Files Attached Files

  7. #7
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need One Formula to Divide the Sum of One Column By Another

    there is no reason you need the sums in P10 and Q10 the way you have them. As biex noted, merged cells are not good to use, they can confound users and formulas.
    The formula you need in D10 (that will be the address it will be in if you look to the far left of the formula bar) is simply =SUM(D4:D9) and it will sum the numbers in column D and exclude the text. Same for H10.
    Now, you can simply use =H10/D10 to get your goal.
    hope that helps.

  8. #8
    Registered User
    Join Date
    03-22-2020
    Location
    Malaysia
    MS-Off Ver
    2013 and 365 Pro Plus
    Posts
    56

    Re: Need One Formula to Divide the Sum of One Column By Another

    You mean like this?

    at any cell, maybe D12

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-15-2016
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    8

    Re: Need One Formula to Divide the Sum of One Column By Another

    Quote Originally Posted by Sambo kid View Post
    there is no reason you need the sums in P10 and Q10 the way you have them. As biex noted, merged cells are not good to use, they can confound users and formulas.
    The formula you need in D10 (that will be the address it will be in if you look to the far left of the formula bar) is simply =SUM(D4:D9) and it will sum the numbers in column D and exclude the text. Same for H10.
    Now, you can simply use =H10/D10 to get your goal.
    hope that helps.
    Unfortunately this is what it is. I did not make the original template for the providers to submit with merged cells, and all of the applications have been submitted; therefore, there is no going back on the fact that I am going to have to work with, or around, the merged cells.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Need One Formula to Divide the Sum of One Column By Another

    Excel doesn't recognize merged cells for formulas. So a formula like
    =ROUND((SUM(H4:I6,H9)/SUM(D4:E6,D9))*100,2)
    is the same as this...
    =ROUND((SUM(H4:H6,H9)/SUM(D4:D6,D9))*100,2)
    so even if you have to work with merged cells as a template, excel doesn't see D4 merged with E4 as D4:E4, it only sees D4. Click in the cell and you will see the cell address across from the formula bar at the top left as D4.
    And as I noted, if you have text in D7 such as excluded from calc, a sum that encompasses D4 through D9 will ignore the two cells with the text in them.

    If your result in R10 is what is your expected answer, this will be sufficient in D10 if that is what you are wanting... =SUM(H4:H9)/SUM(D4:D9)

  11. #11
    Registered User
    Join Date
    02-15-2016
    Location
    Indiana
    MS-Off Ver
    2010
    Posts
    8

    Re: Need One Formula to Divide the Sum of One Column By Another

    Quote Originally Posted by Sambo kid View Post
    there is no reason you need the sums in P10 and Q10 the way you have them. As biex noted, merged cells are not good to use, they can confound users and formulas.
    The formula you need in D10 (that will be the address it will be in if you look to the far left of the formula bar) is simply =SUM(D4:D9) and it will sum the numbers in column D and exclude the text. Same for H10.
    Now, you can simply use =H10/D10 to get your goal.
    hope that helps.
    Haven't looked at the other replies this morning yet, but yes, I understand I could do that... except I entered that text just to show that I needed to exclude those cells. The real data has numeric values in those cells with the "excluded" text.

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

    Re: Need One Formula to Divide the Sum of One Column By Another

    I assume that for the ESL students, values in rows 7 and/or 8 should be included in the calculation. Is there any identifying information on the form for ESL? If so there may be an opportunity to employ the IF function and differentiate those instances when values in rows 7 and/or 8 should be included.
    Let us know if you have any questions.
    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. [SOLVED] Divide a column in two
    By zumbito in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2019, 01:24 AM
  2. Replies: 1
    Last Post: 03-25-2015, 06:24 PM
  3. Replies: 1
    Last Post: 03-13-2015, 03:47 AM
  4. Divide column A/2.2046 if column B and C is not equal
    By cckonline in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-14-2013, 04:57 AM
  5. Replies: 4
    Last Post: 09-26-2012, 12:42 PM
  6. Divide one column from another (numbers) and paste answer in new column
    By nachousa in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-02-2010, 12:39 PM
  7. Looking for a formula that will divide a column & rows by 2
    By anchar in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-12-2006, 11:50 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