+ Reply to Thread
Results 1 to 4 of 4

how to make excel not compute when there are no values to reference

  1. #1
    Forum Contributor
    Join Date
    03-07-2008
    Posts
    140

    how to make excel not compute when there are no values to reference

    Hello,
    I would like excel to leave a blank when there are no values in the cells that the formula references. For example, I copy and paste values into column C and D of the attached sheet. The goal is for the column B to return a 0.001 when the answer is <= to zero. This formula works fine for the cells where there are values in C and D but also returns a 0.001 when there no values in column C and D. It will change from week to week which C and D columns will have values. Another issue is that the values in C and D will sometimes be 0 and 0.....so i would want to return a 0.001 in the B column when there are 0 values in C and D. thanks for the help!
    Attached Files Attached Files
    Last edited by mufan; 05-06-2020 at 04:49 PM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: how to make excel not compute when there are no values to reference

    Maybe try at B3

    =IF(C3="","",IF(D3>C3,D3-C3,0.001))

  3. #3
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: how to make excel not compute when there are no values to reference

    Please Login or Register  to view this content.
    I think this formula does the job.
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  4. #4
    Forum Contributor
    Join Date
    03-07-2008
    Posts
    140

    Re: how to make excel not compute when there are no values to reference

    thanks guys both of these formulas work fantastic. many thanks for your help!

+ 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] Combine 2 cells values into a formula to make single cell reference?
    By PeteABC123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-29-2019, 08:07 AM
  2. How can i compute a function that make a probit regression?
    By bilou_12 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-15-2012, 02:14 PM
  3. Reference worksheet by index, how to make function use values from caller sheet
    By quasimoto in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-05-2011, 04:48 PM
  4. Replies: 3
    Last Post: 07-16-2009, 12:40 AM
  5. Any way to make SUMIF only compute visible rows?
    By gtzpower in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2007, 11:54 AM
  6. How to make excel not to compute formula
    By anoopra in forum Excel Formulas & Functions
    Replies: 45
    Last Post: 09-06-2005, 09:05 PM
  7. [SOLVED] how do i get excel to automatically compute cell values
    By talil in forum Excel General
    Replies: 2
    Last Post: 03-17-2005, 01:06 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