+ Reply to Thread
Results 1 to 4 of 4

Divide two cells with variable rows

  1. #1
    Registered User
    Join Date
    07-07-2022
    Location
    PA
    MS-Off Ver
    2000
    Posts
    2

    Divide two cells with variable rows

    I need a formula that will allow me to just copy past with having to edit the formula every time the static variable changes. Basically i have a list of items that are summed for each person. I divide each individual item by the sum of their items and get a number. my formula for that is B1=A1/$A$4 and then i just drag it down so i get the following results (B2=A2/$A$4, B3=A3/A4 etc.). However to move to the next person i need to change the static variable to whatever that may be. For instance it could be B5=A5/$A$11. B6=A6/$A$11 etc. Hopefully my terrible chart below makes sense. I have a list of 60 people so its very time consuming changing the static variable for each person and was hoping there would be a simpler solution. I have attached a sample file too. Not sure if this matters but the static number is also always bolded in my sheet as well.


    A B
    1 =A1/$A$5
    2 =A2/$A$5
    3 =A3/$A$5
    4 =A4/$A$5
    5 =SUM(A1:A4)
    6 =A6/$A$12
    7 =A7/$A$12
    8
    9
    10
    11
    12 =sum(A6:A11)
    Attached Files Attached Files

  2. #2
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Divide two cells with variable rows

    Try this formula Cell C2 , Drag down

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 07-07-2022 at 09:40 PM.

  3. #3
    Registered User
    Join Date
    07-07-2022
    Location
    PA
    MS-Off Ver
    2000
    Posts
    2

    Re: Divide two cells with variable rows

    I appreciate the attempt but it doesn't produce the correct answer

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,439

    Re: Divide two cells with variable rows

    The attachment has been submitted, please refer to
    Attached Files Attached Files

+ 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. Imported cells do not divide into separate rows - massive cells
    By alecoute in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-30-2018, 03:13 PM
  2. [SOLVED] Variable=2 - Duplicate Row - Divide data by Variable - can anyone help me with this?
    By MaverickSemperFi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-08-2018, 06:14 PM
  3. Help to divide a number from a variable cell
    By maym in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-03-2017, 05:32 AM
  4. Divide text cells into different rows
    By Martin333 in forum Excel General
    Replies: 2
    Last Post: 03-03-2015, 05:31 PM
  5. VBA Excel 2013 - Count data rows on single sheet, divide by 3 , color band rows.
    By DoodlesMama in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-26-2015, 01:33 PM
  6. divide variable value between variable cells????
    By richardeallen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-06-2008, 01:54 PM
  7. [SOLVED] Variable as result of Divide (Sum) Function
    By David in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-29-2006, 09:25 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