+ Reply to Thread
Results 1 to 22 of 22

IF/VLOOKUP & MOD Subtotal backwards math calculation

  1. #1
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Talking IF/VLOOKUP & MOD Subtotal backwards math calculation

    Hi All

    I was helped by the friendly people on this forum a while back to work on this sheet. I am now hoping for assistance on this next step - I really tried Google as much as I can, and appreciate the help on what I suspect to be relatively simple.

    I need to be able to put items as a "once-off" and therefor mark column E as 0. This can be a once of in any specified amount of years (Column D).

    Hoping the clever people on here can assist as per attached example
    Attached Files Attached Files
    Last edited by pottie8; 07-20-2022 at 03:22 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: IF & MOD Columns to allow and consider "zero"

    You get better help if you add the expected result in your excel file.

    Please also add the related cells.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Question Re: IF & MOD Columns to allow and consider "zero"

    Please see attached updated with manual results .

    refer to strawberries and banana as the examples.

    Top current formula unable to change to zero and ignore all other results before and after as "blank".

    Bottom is what the results should look like.
    Attached Files Attached Files

  4. #4
    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,779

    Re: IF & MOD Columns to allow and consider "zero"

    There are no differences betseen the before and after tables ...

    EDIT: Oh, I see - you should have highlighted the DIFFERENCES!!!
    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.

  5. #5
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Thanks for the edit - was doubting myself there for a second
    Last edited by AliGW; 07-18-2022 at 04:35 AM. Reason: Please DON'T quote unnecessarily!

  6. #6
    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,779

    Re: IF & MOD Columns to allow and consider "zero"

    Try this copied across and down:

    =IFERROR(IF(AND($E17=0,F$15="Year "&$D17),$C17*1.1,IF(COLUMNS($F17:F17)>=$D17,IF(MOD(COLUMNS($F17:F17)-$D17+$E17,$E17)=0,$C17*(1.1^(COLUMNS($F17:F17)-1)),""),"")),"")

    Thanks for the edit - was doubting myself there for a second
    Well, you could have been clearer, as I said!
    Attached Files Attached Files

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: IF & MOD Columns to allow and consider "zero"

    or this (if it's different!!):

    =IFERROR(IF(AND($E17=0,COLUMNS($F17:F17)=$D17),$C17*1.1^(COLUMNS($F17:F17)-1),IF(COLUMNS($F17:F17)>=$D17,IF(MOD(COLUMNS($F17:F17)-$D17+$E17,$E17)=0,$C17*(1.1^(COLUMNS($F17:F17)-1)),""),"")),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Quote Originally Posted by Glenn Kennedy View Post
    or this (if it's different!!):

    =IFERROR(IF(AND($E17=0,COLUMNS($F17:F17)=$D17),$C17*1.1^(COLUMNS($F17:F17)-1),IF(COLUMNS($F17:F17)>=$D17,IF(MOD(COLUMNS($F17:F17)-$D17+$E17,$E17)=0,$C17*(1.1^(COLUMNS($F17:F17)-1)),""),"")),"")
    THIS IS THE ONE! Thank you ever so much! Have a blessed day!

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: IF & MOD Columns to allow and consider "zero"

    I had a slightly different approach, although see I am too slow

    =IF($E17=0,IF(COLUMNS($F17:F17)=$D17,$C17*(1.1^(COLUMNS($F17:F17)-1)),""),IF(AND(COLUMNS($F17:F17)>=$D17,MOD(COLUMNS($F17:F17)-$D17+$E17,$E17)=0),$C17*(1.1^(COLUMNS($F17:F17)-1)),""))

  10. #10
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Thank you and sorry I wasnt clearer - this seems to have only considered the 1.1 increase once (no matter how many years was specified, but ALMOST it)

    Glenn Kennedy solution worked the charm

    Thank you so much for the time and effort!

  11. #11
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Thank you so much to all the responses on here - this is an amazing platform. THANK YOU!

  12. #12
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: IF & MOD Columns to allow and consider "zero"

    You're welcome.



    It would be very nice if you were to just click the Add Reputation button at the foot of any of the posts of members who helped you reach a solution.

    Finally, if that takes care of your original question, please select "Thread Tools" from the menu link (just above the first post in the thread) and mark this thread as SOLVED.

  13. #13
    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,779

    Re: IF & MOD Columns to allow and consider "zero"

    Thank you and sorry I wasnt clearer - this seems to have only considered the 1.1 increase once (no matter how many years was specified, but ALMOST it)
    Well, you referred to it as a 'one-off' and I am pretty sure it resulted in what you said you wanted in the workbook, so yes, the lesson is to be 100% specific.

    Glad to have helped.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) 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 all those who offered help.

  14. #14
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Talking IF & MOD Columns to allow and consider "zero"

    Hi everyone

    I'm building further on this and need another round of assistance to calculate subtotal values, but only if certain conditions are met. (Im assuming IF/Vlookup?)

    attached example will better explain (I hope and trust) and the outcome should be the total of all "once-off" items (added together if it overlaps with another).
    Attached Files Attached Files

  15. #15
    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,779

    Re: IF & MOD Columns to allow and consider "zero"

    I've copied your latest post here - for simplicity's sake, please contine here. I've removed the SOLVED tag and you can add some extra detail to the thread title if you wish.

  16. #16
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Thanks AliGW

    Hi everyone

    I'm building further on this and need another round of assistance to calculate subtotal values, but only if certain conditions are met. (Im assuming IF/Vlookup?)

    attached example will better explain (I hope and trust) and the outcome should be the total of all "once-off" items (added together if it overlaps with another).
    Attached Files Attached Files

  17. #17
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Quote Originally Posted by AliGW View Post
    I've copied your latest post here - for simplicity's sake, please contine here. I've removed the SOLVED tag and you can add some extra detail to the thread title if you wish.
    Sorry I only read you copied it already now - im so sorry for the duplication :/

  18. #18
    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,779

    Re: IF & MOD Columns to allow and consider "zero"

    Not to worry - that's why I asked the question in your other thread!

  19. #19
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: IF & MOD Columns to allow and consider "zero"

    You can use the array formula in cell F28 then copy to right
    Please Login or Register  to view this content.
    Ctrl+Shift+Enter
    Last edited by AliGW; 07-20-2022 at 05:59 AM. Reason: Please DON'T quote unnecessarily!

  20. #20
    Registered User
    Join Date
    08-18-2019
    Location
    Cape Town
    MS-Off Ver
    2019 (O365)
    Posts
    16

    Re: IF & MOD Columns to allow and consider "zero"

    Thank you so much for this solution! !!
    Last edited by AliGW; 07-20-2022 at 05:59 AM. Reason: Please DON'T quote unnecessarily!

  21. #21
    Forum Contributor
    Join Date
    11-21-2013
    Location
    zimbabwe
    MS-Off Ver
    Excel 2003
    Posts
    124

    Re: IF & MOD Columns to allow and consider "zero"

    You're welcome. Good luck!

  22. #22
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: IF/VLOOKUP & MOD Subtotal backwards math calculation

    soledad... can you please update your profile, as it seems that you are no longer using Excel 2003 (IFERROR).

+ 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] Formula to count "low", "med", or "high" in 4 columns of data split by fiscal quarter
    By Kerry1980 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-11-2022, 06:58 AM
  2. Replies: 5
    Last Post: 02-05-2019, 12:03 AM
  3. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  4. Replies: 4
    Last Post: 11-17-2013, 12:05 PM
  5. [SOLVED] How to USE """"" cells count """"" change font color
    By austin123456 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-09-2013, 06:14 AM
  6. Replies: 0
    Last Post: 01-09-2013, 06:52 PM
  7. [SOLVED] Problem creating Line Chart from columns "date" and "money"
    By brosef in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 11-05-2012, 09:01 AM

Tags for this Thread

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