+ Reply to Thread
Results 1 to 12 of 12

percentage increases over time

  1. #1
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    percentage increases over time

    Hi. I have a list of over 2000 cities, and I need to determine percentage increases of population over each census (going back to 1860). The first percentage needs to be when the population first exceeds 800 citizens, and the percentage increase after 800 (not the previous census). After that, I need census after census. Unfortunately, since all of these cities exceeded the minimum marker at different census, I'm not sure what I can do to have the first formula be one thing and then everything after that to be a different formula.

    To better illustrate what I'm looking for, I tried to mimic a small portion of the table I have.

    A
    B
    C
    D
    E
    1
    City
    1990
    2000
    2010
    2020
    2
    City A
    244
    438
    982
    1,001
    3
    City B
    7,000
    7,943
    7,543
    6,894
    4
    City C
    699
    850
    932
    955



    So using the above table to find the initial increase over 800 people and then the census over census increase, I think it would look something like this:

    First formula: (c2-800)/800
    All subsequent formulas: (d2-c2)/c2

    Is there a way I could create one formula and fill it down for all cities, or would I have to manually look at each row and type the first formula when the population exceeds 800, and then the second formula for everything after? I hope there is a way I can resolve this simply. Otherwise, it will take days to manually go city by city.

    Thanks in advance!
    Last edited by 6StringJazzer; 12-20-2023 at 11:19 PM. Reason: replaced unformatted data with grid

  2. #2
    Forum Contributor
    Join Date
    03-30-2016
    Location
    Gillette, WY
    MS-Off Ver
    Office 365
    Posts
    230

    Re: percentage increases over time

    Can you attach a sample worksheet:

    Go Advanced>Manage Attachments>Browse>Upload>Close Window>Preview Post>Submit Reply

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: percentage increases over time

    I'm not clear on what you want the results to look like but it seems to be that it would have to be another table parallel to the first one. Please check to see if these the results you would want from the sample you provided. You can't calculate a delta for the first year's values. Do you want that to be the value - 800 even if there are no prior values?

    The formula shown here can be copied to the right and down as many rows and columns needed, but the initial formula has to be aligned with your data layout.

    Values as displayed
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    City
    1990
    2000
    2010
    2020
    1990
    2000
    2010
    2020
    2
    City A
    244
    438
    982
    1,001
    -45.3%
    1.9%
    3
    City B
    7,000
    7,943
    7,543
    6,894
    13.5%
    -5.0%
    -8.6%
    4
    City C
    699
    850
    932
    955
    -12.6%
    9.6%
    2.5%


    Underlying formulas
    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    1
    City
    1990
    2000
    2010
    2020
    =B1
    =C1
    =D1
    =E1
    2
    City A
    244
    438
    982
    1,001
    =IF(B2>800,IF(ISTEXT(A2),"",IF(A2>800,(B2-A2)/A2,(A2-800)/800)),"")
    =IF(C2>800,IF(ISTEXT(B2),"",IF(B2>800,(C2-B2)/B2,(B2-800)/800)),"")
    =IF(D2>800,IF(ISTEXT(C2),"",IF(C2>800,(D2-C2)/C2,(C2-800)/800)),"")
    =IF(E2>800,IF(ISTEXT(D2),"",IF(D2>800,(E2-D2)/D2,(D2-800)/800)),"")
    3
    City B
    7,000
    7,943
    7,543
    6,894
    =IF(B3>800,IF(ISTEXT(A3),"",IF(A3>800,(B3-A3)/A3,(A3-800)/800)),"")
    =IF(C3>800,IF(ISTEXT(B3),"",IF(B3>800,(C3-B3)/B3,(B3-800)/800)),"")
    =IF(D3>800,IF(ISTEXT(C3),"",IF(C3>800,(D3-C3)/C3,(C3-800)/800)),"")
    =IF(E3>800,IF(ISTEXT(D3),"",IF(D3>800,(E3-D3)/D3,(D3-800)/800)),"")
    4
    City C
    699
    850
    932
    955
    =IF(B4>800,IF(ISTEXT(A4),"",IF(A4>800,(B4-A4)/A4,(A4-800)/800)),"")
    =IF(C4>800,IF(ISTEXT(B4),"",IF(B4>800,(C4-B4)/B4,(B4-800)/800)),"")
    =IF(D4>800,IF(ISTEXT(C4),"",IF(C4>800,(D4-C4)/C4,(C4-800)/800)),"")
    =IF(E4>800,IF(ISTEXT(D4),"",IF(D4>800,(E4-D4)/D4,(D4-800)/800)),"")
    Last edited by 6StringJazzer; 12-20-2023 at 11:40 PM.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: percentage increases over time

    I tried to upload a copy. It's rows X - AR where I need the formulas.
    Thanks.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: percentage increases over time

    @6StringJazzer

    Thanks. This almost works. The year over year formulas work great, but the first time it exceeds 800, It's not showing the result of (a1-800)/800, but rather the result is -1. I attached a spreadsheet if that helps.
    Last edited by AliGW; 12-21-2023 at 05:58 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  6. #6
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: percentage increases over time

    Try, Y2=IFERROR(IF(AND(B2<=800,C2<=800,X2=""),"",IF(AND(B2<=800,C2>800),(C2-800)/800,(C2-B2)/B2)),""), copy across and down.

  7. #7
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: percentage increases over time

    Thank you! This worked great!

  8. #8
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: percentage increases over time

    If your question has been answered please mark your thread as "Solved" so that members will know by looking at the thread title that your problem is solved. Go to the menu immediately above your first post to the thread and click on Thread Tools. From the dropdown menu select "Mark this thread as solved..."

    If a member helped you solve your problem, consider adding to their reputation by clicking addreputationiconsmall.jpg below their name.

  9. #9
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: percentage increases over time

    Sorry. There's nothing under thread tools that says anything about "Mark this thread as solved"

  10. #10
    Forum Expert
    Join Date
    01-05-2013
    Location
    Singapore
    MS-Off Ver
    H&B2016 & H&B2021
    Posts
    3,059

    Re: percentage increases over time

    It is in the thread Tools above:

    Mark this thread as solved.png

  11. #11
    Registered User
    Join Date
    12-20-2023
    Location
    Boston, MA
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Re: percentage increases over time

    Nope. Not an option for me. The dropdown options literally stop after "Add a Poll to this Thread"

  12. #12
    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,869

    Re: percentage increases over time

    Are you on a mobile device?

    I'll do it for you this time.
    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.

+ 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. Variable percentage increases.
    By Oymonkey in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2021, 01:58 PM
  2. Replies: 5
    Last Post: 02-25-2021, 08:29 AM
  3. Replies: 10
    Last Post: 11-07-2017, 09:48 AM
  4. Replies: 4
    Last Post: 03-11-2014, 12:28 AM
  5. Macro that increases a cell value by a certain percentage
    By Jehanzaib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-24-2013, 07:55 AM
  6. Replies: 8
    Last Post: 06-05-2012, 01:16 PM
  7. How to record percentage increases in materials costing sheet.
    By onesonya in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-07-2005, 03:05 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