+ Reply to Thread
Results 1 to 4 of 4

Divide by number of years in dropdown list otherwise 0

  1. #1
    Registered User
    Join Date
    12-14-2021
    Location
    Bangkok
    MS-Off Ver
    MS Office 365, Verision 16.55
    Posts
    62

    Divide by number of years in dropdown list otherwise 0

    I want to have a formula in cell N7 where the number will be divided by the years selected in the dropdown list and otherwise 0 for other years
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,992

    Re: Divide by number of years in dropdown list otherwise 0

    Do you mean this?

    =IFERROR(I9/H17,0)
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-14-2021
    Location
    Bangkok
    MS-Off Ver
    MS Office 365, Verision 16.55
    Posts
    62

    Re: Divide by number of years in dropdown list otherwise 0

    Yes, but I am looking for a more dynamic approach.

    So the formula should only show division result upto 5 years otherwise 0 for the rest of the years ; division result up to 10 years if selected 10 otherwise 0 and so on

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,990

    Re: Divide by number of years in dropdown list otherwise 0

    Without the benefit of seeing some manually calculated results, this is my guess:
    Paste the following into cell N7 and drag the fill handle to the right: =IF(SUM($N6:N6)=$H17,$I9/$H17,0)
    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. Replies: 3
    Last Post: 08-30-2021, 01:17 PM
  2. How to get list of months for specific number of years?
    By milindbharambe in forum Excel General
    Replies: 4
    Last Post: 04-16-2014, 08:03 AM
  3. Replies: 2
    Last Post: 05-31-2013, 12:52 PM
  4. how to count dates and divide in years
    By DMR1712 in forum Excel General
    Replies: 3
    Last Post: 07-16-2010, 02:46 AM
  5. HELP?! Divide a sum by number if items in list
    By jonnykanzen in forum Excel General
    Replies: 3
    Last Post: 10-02-2008, 05:21 AM
  6. [SOLVED] how do I subtract years and then divide
    By crystal in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 10-22-2005, 03:05 PM
  7. [SOLVED] Excel formula divide list of #s by N to get a number above 40
    By JudyK in forum Excel General
    Replies: 11
    Last Post: 02-09-2005, 05:06 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