+ Reply to Thread
Results 1 to 14 of 14

how to amend formula to specification

  1. #1
    Registered User
    Join Date
    01-23-2016
    Location
    england
    MS-Off Ver
    2010
    Posts
    79

    Question how to amend formula to specification

    Hi

    I trying to amend the formula below, I feel that I am not far away but I need some assistance.

    =IF(OR(ISBLANK(D8), ISBLANK(E8)), "",E8-D8)

    I want it to do, if cell E8 or D8 or both are empty do nothing if both contain values then E8-D8.

    Thanks for any help , much appreciated.

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Formula Help

    Your formula looks fine to me. What's wrong with your formula?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula Help

    Please take a moment to read the forum rules and then amend your thread title to something descriptive of your problem - not what you think the answer might be. (think google search terms?). Once you have done this please send me a PM and I will remove this request. (Also, include a link to your thread - copy from the address bar)

    Many members search our previous posts, and thread titles play a big part of the search. I doubt anybody would do a search based on your title?

    To change a Title on your post, click EDIT POST then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (note: this change is not optional )

    If both need to have something in them, use AND, not OR
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Formula Help

    Try this:

    =IF(OR(ISBLANK(D8), ISBLANK(E8)), "",IF(AND(ISNUMBER(D8),ISNUMBER(E8)),E8-D8,""))
    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

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

    Re: Formula Help

    Aww Damn it Ford. That's twice in 5 minutes I've broken the rules. Think I'll go and cry into a beer...

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula Help

    LOL Glenn, thats OK, I always check the time stamp on posts, no sweat

  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 2406
    Posts
    44,662

    Re: Formula Help

    Any excuse to get a beer... Booh Hooh!!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Formula Help

    well, as long as you are buying?

  9. #9
    Registered User
    Join Date
    01-23-2016
    Location
    england
    MS-Off Ver
    2010
    Posts
    79
    Quote Originally Posted by JieJenn View Post
    Your formula looks fine to me. What's wrong with your formula?
    The problem im having is the formula is working when one or the othe cell contain values too

  10. #10
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,709

    Re: Formula Help

    @Glenn--Count me in, too.

    @max8719--Please repair your title as requested by Ford in post #3 or risk infractions/banishment.
    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

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

    Re: Formula Help

    Well, right now I'm in NE France. if you can get to Turckheim (Google it: it's a visual treat) before closing time: the first one's on me.

  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 2406
    Posts
    44,662

    Re: Formula Help

    Max. Do check out the possible solution at #4

  13. #13
    Registered User
    Join Date
    01-23-2016
    Location
    england
    MS-Off Ver
    2010
    Posts
    79

    Re: Formula Help

    Please change my title to: how to amend formula to specification.
    Last edited by max8719; 09-15-2016 at 02:50 PM.

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

    Re: Formula Help

    I can't do it.

    You can:

    To change a Title on your post, click EDIT POST then Go Advanced and change your title

+ 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. Amend formula to remove #VALUE! from result
    By robertguy in forum Excel General
    Replies: 2
    Last Post: 06-28-2016, 12:50 AM
  2. [SOLVED] Amend ‘If – And ‘formula for another condition
    By robertguy in forum Excel General
    Replies: 3
    Last Post: 01-05-2016, 10:05 AM
  3. [SOLVED] Amend formula to return ‘Yes’ rather than ‘P’
    By robertguy in forum Excel General
    Replies: 7
    Last Post: 06-17-2015, 10:03 AM
  4. [SOLVED] Help request to amend the formula
    By mso3 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-30-2015, 02:22 AM
  5. Need to amend a timesheet formula
    By The New Fat in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-18-2013, 10:01 AM
  6. Kindly amend this formula
    By darkhangelsk in forum Excel General
    Replies: 1
    Last Post: 08-28-2009, 01:49 PM
  7. Need to amend Array Formula
    By adam2308 in forum Excel General
    Replies: 3
    Last Post: 07-09-2009, 06:54 PM

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