+ Reply to Thread
Results 1 to 8 of 8

Adjust IF statement to reflect new template requirements

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    Adjust IF statement to reflect new template requirements

    On the attached, I have created a template with the help of this great forum - thank you all!

    I have a question that I need help with - in cell K10 the value is ($8,317.44), then in cells I31: I45 I have a formula that spreads the ($8,317.44) evenly (so if we have values in I31:I32 then it would place ($4,158.72) in each cell, and if we have values in I31:I33 then it would show ($8,317.44)/3 or ($2,772.48), in those cells.

    Anyways, the formula I31:I45 needs to be adjusted to look at the values in E31:E45. So in my example, there is a value in row 31 but the Software list Total for this row is 0 (e31). In this case, we do not want the surrender value in I31 to populate. Instead, we would want the entire value of K10 ($8,317.44) to be populated in I32 because the Software list Total isn't equal to 0. Is there a way to add on to the formula in I31:I45 to make sure there is a value greater than 0 in the software list total for the row and if not, then do not populate a surrender value for that row?

    I hope I'm not being too confusing - any and all help is much appreciated!

    Thanks!
    Attached Files Attached Files
    Last edited by lemonap618; 10-26-2020 at 07:11 PM. Reason: incorrect title

  2. #2
    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
    79,400

    Re: If Statement HELP

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.

  3. #3
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: If Statement HELP

    Hello,
    I have changed the title - is this better now?

  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
    79,400

    Re: Formula adjustment needed

    No. You need to summarise in the title what you are trying to achieve with the formula. Your two attempts so far are just generic and tell us nothing.

    Try again, please.

  5. #5
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Formula adjustment needed

    okay, hopefully, the third time is a charm

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,807

    Re: Adjust IF statement to reflect new template requirements

    Well, I'm not 100% sure on all your logic, but this may at least give you enough to change it to what you need? In Cell I31 enter this:
    =IF(OR(E32=0,G32=""),"",$K$25/(COUNTIFS($F$31:$F$45,">0"))-1)
    and copy down.

  7. #7
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: Adjust IF statement to reflect new template requirements

    Thank you so much, Gregb11!

  8. #8
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,807

    Re: Adjust IF statement to reflect new template requirements

    Glad it worked for you.

+ 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] IF Statement with Multi-Criteria Statement inside a Data Validation List
    By dharvey1978 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-31-2020, 09:10 PM
  2. Replies: 2
    Last Post: 07-09-2015, 04:25 PM
  3. compile error expected line number statement end statement
    By mattress58 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-18-2014, 10:12 AM
  4. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  5. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  6. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  7. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 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