+ Reply to Thread
Results 1 to 4 of 4

Error (again), IF needed

  1. #1
    Registered User
    Join Date
    08-06-2013
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    72

    Error (again), IF needed

    Hello,

    I recently posted a similar question but since this is slightly different, and I like following the rules, I started a new thread for this question.

    I have a formula =E1*1.02/((D1*22))

    However, when D1 is empty it produces an error (as it should). Unfortunately, when D1 is empty, I want it to use the formula without the D cell. For example, if D1 is empty it would read =E1*1.02/22, or something like that (removing the D cell from the equation).

    I tried doing =IF(D1="",E1*1.01/22), E1*1.02/((D1*22)) and it's not working (value error). What am I doing wrong?

    I appreciate your help in advance!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error (again), IF needed

    =1.02 * e1 / 22 / if(n(d1), d1, 1)

    or

    =1.02 * e1 / 22 * iferror(1/d1, 1)
    Last edited by shg; 04-01-2014 at 03:08 PM.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    08-06-2013
    Location
    Pennsylvania
    MS-Off Ver
    Excel 2003
    Posts
    72

    Re: Error (again), IF needed

    Excellent! Thanks shg, I really appreciate it.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Error (again), IF needed

    You're welcome.

+ 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] Help needed with formula error
    By williesmith2008 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-19-2012, 03:29 PM
  2. Error Dialog Needed
    By raydeep1347 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 05:35 AM
  3. Help needed with #REF! error (arrays)
    By robotlust in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-17-2008, 08:53 PM
  4. [SOLVED] Error routine needed
    By Jeff Wright in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2005, 12:06 AM
  5. [SOLVED] Compiling error! VBA Help needed
    By Mary in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-16-2005, 03:06 AM

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