+ Reply to Thread
Results 1 to 6 of 6

Need field to remain blank unless data is entered.

Hybrid View

  1. #1
    Registered User
    Join Date
    11-15-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    3

    Need field to remain blank unless data is entered.

    Could someone please tell me what is wrong with this formula? I am needing the cell to remain blank unless data(numbers) is entered. I basically am adding row21 and adding row 22 then needing the difference between the two rows. I am a basic excel user.


    =IF(OR(D22="",E22="",F22="",G22="",H22="",I22=""),"",IF((D21+E21+F21+G21+H21+I21)-(D22+E22+F22+G22+H22+I22))


    Thank you.

  2. #2
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Need field to remain blank unless data is entered.

    not sure what you are getting, but unless I'm mistaken, you do not require the second if, so:
    Formula: copy to clipboard
    =IF(OR(D22="",E22="",F22="",G22="",H22="",I22=""),"",(D21+E21+F21+G21+H21+I21)-(D22+E22+F22+G22+H22+I22))


    should fix it

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  3. #3
    Registered User
    Join Date
    11-15-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need field to remain blank unless data is entered.

    Tony Valko - I would want the formula to return blank if All the cells are empty. It is for measurements in inches.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need field to remain blank unless data is entered.

    OK, then maybe this version:

    =IF(COUNT(D22:I22),SUM(D21:I21)-SUM(D22:I22),"")
    Last edited by Tony Valko; 11-15-2013 at 11:54 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Need field to remain blank unless data is entered.

    Do you want the formula to return a blank if ALL the cells are empty or if ANY cell is empty?

    Maybe like this...


    =IF(COUNT(D22:I22)<6,"",SUM(D21:I21)-SUM(D22:I22))

  6. #6
    Registered User
    Join Date
    11-15-2013
    Location
    Oklahoma
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Need field to remain blank unless data is entered.

    Thank you SO much!! I have been searching the internet and trying this and that for four hours just for this one formula! I am so glad I found this forum. Thanks again!

+ 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. Replies: 3
    Last Post: 10-30-2013, 09:19 AM
  2. [SOLVED] multiply a certain value to another from( other field) remain blank if no entry made
    By tushmen36 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-16-2013, 08:48 PM
  3. Replies: 2
    Last Post: 06-24-2013, 03:32 PM
  4. Replies: 4
    Last Post: 04-05-2012, 11:41 AM
  5. Copy from Sheet 2, but remain blank if no data
    By noellloyd in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2011, 06:31 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