+ Reply to Thread
Results 1 to 13 of 13

Conditional divison based on cells result

  1. #1
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Conditional divison based on cells result

    Hello,

    I am trying to divide a number in max 3 or 4 equal installments. If 3 is selected then 4th cell should return 0.

    For example

    If A1 is - 3 (no. of installments) drop down with max 4 installments allowed


    If A2 is - 3000.00 (total amount) then

    A3 - 1000
    A4 - 1000
    A5 - 1000
    A6 - 0 (As sum of A3:A5= A2 i.e 3000)

    If A2 is - 4000 then and A1 is 4 then

    A3 - 1000
    A4 - 1000
    A5 - 1000
    A6 - 1000 (max 4 installments are allowed)


    Thank you.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Conditional divison based on cells result

    In A3 =$A$2/$A$1
    A4 and A5 same as A3
    In A6 =IF(A1=4,$A$2/$A$1,"")
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    Hey, that worked like a charm.

    thank you so much for prompt reply.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,890

    Re: Conditional divison based on cells result

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  5. #5
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    Hi,

    I need to add 2, 3, 4 and 5 installments, to above calculation, please guide.

    Thanks

  6. #6
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    Hello,



    I am trying to divide a number in max 2, 3, 4, 5, 6 equal installments. If 5 is selected then 6th cell should return 0.

    For example

    If A1 is - 5 (no. of installments) drop down with max 6 installments allowed


    If A2 is - 6000.00 (total amount) then

    A3 - 1200
    A4 - 1200
    A5 - 1200
    A6 - 1200
    A7 - 1200
    A8 - 0 (As sum of A3:A7= A2 i.e 6000)

    If A2 is - 6000 then and A1 is 6 then

    A3 - 1000
    A4 - 1000
    A5 - 1000
    A6 - 1000
    A7 - 1000
    A8 - 1000 (max 6 installments are allowed)

    I did got resolution for this in prev post, but that was for 3 and 4 installments only.


    Thank you.

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Conditional divison based on cells result

    in a3 if(row()<$a$1+3,$A$2/$A$1,"")


    eg row a3 is 3. if A1 is 1 you want the formula to calculate 3<4 so ok but the row below in a4 its not true

    This will work for any number of instalments if you copy the formula down

  8. #8
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    Thanks for your reply, but this is not working.
    getting no value in the cell

  9. #9
    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,915

    Re: Conditional divison based on cells result

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  10. #10
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Conditional divison based on cells result

    the cells are the same as those you describ in your example?

    if you were in say a13 and not a3 the result would not work. Hence why an example is being asked for. for this to work the 3 in the formula would need to change to a 13

  11. #11
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    Its working....., but in blank sheet and not in my original one. trying to figure out the error....

  12. #12
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    I have attached a excel sheet, its working in new sheet but not in this one.

    Thanks
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-20-2021
    Location
    india
    MS-Off Ver
    2007
    Posts
    9

    Re: Conditional divison based on cells result

    solved, thanks i forgot to change the no of 3 to 18.

+ 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] Conditional Formatting based on Formula Result
    By Arran [BMI] in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 12-18-2017, 09:40 PM
  2. [SOLVED] Compute rank within each divison
    By jimboryan in forum Excel General
    Replies: 4
    Last Post: 05-12-2016, 08:26 PM
  3. [SOLVED] Conditional formatting in one column based on the result of another
    By mra1984 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-05-2013, 09:41 AM
  4. Conditional format based on calculated result
    By c505ber in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-04-2013, 08:26 PM
  5. symbol for divison problems; divison formula
    By excel general question ... help please in forum Excel General
    Replies: 4
    Last Post: 07-15-2006, 12:30 PM
  6. [SOLVED] conditional formatting based on another cells formula result
    By kstarkey in forum Excel General
    Replies: 3
    Last Post: 10-05-2005, 05:05 PM
  7. Divison by 0
    By jacob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-26-2005, 04: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