+ Reply to Thread
Results 1 to 8 of 8

Trying to make an existing formula conditional

  1. #1
    Registered User
    Join Date
    10-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Trying to make an existing formula conditional

    Have been using

    =IF(ABS(TODAY()-D20)<365, ((J20-F20)*E20), 0) successfully, but would like to change it to "reflect" the If statement as follows:

    =IF((I20-j20=.01), ((J20-F20)*E20)=.01, ((J20-F20)*E20) ,0) Apparently I'm using too many arguments.

    Another way of accomplishing this?

    Thanks and stay safe.

    Mike
    Last edited by AliGW; 02-20-2021 at 11:08 AM.

  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
    80,780

    Re: Using IF

    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
    Registered User
    Join Date
    10-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Trying to make an existing formula conditional

    Would like to render cell A100 with either (J20-F20)*E20 OR 0, depending on whether I20-j20=.01. Tried using IF but without success.

    Thanks.
    Last edited by mjohn99; 02-20-2021 at 11:02 AM.

  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,780

    Re: Using IF

    Summarise this in your thread title, please, and then the thread can proceed. The current title is too generic - it does not tell us what you are trying to do with IF.

  5. #5
    Registered User
    Join Date
    10-19-2011
    Location
    usa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Using IF

    Ali,

    Does above edit work?

  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,780

    Re: Trying to make an existing formula conditional

    Yes, thanks - but you updated the wrong post! I have updated the OPENING post for you.

  7. #7
    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,780

    Re: Trying to make an existing formula conditional

    Are you still using Excel 2010 or something newer?

    Please explain in WORDS what the formula you want to create is meant to do and where it needs to be.

  8. #8
    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,780

    Re: Trying to make an existing formula conditional

    Is this it?

    =IF(ABS(TODAY()-D20)<365, IF(I20-J20=.01, (J20-F20)*E20, 0))

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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