+ Reply to Thread
Results 1 to 4 of 4

assign blank cell when formula value totals zero

  1. #1
    Registered User
    Join Date
    03-15-2013
    Location
    southampton
    MS-Off Ver
    Excel 2007
    Posts
    11

    assign blank cell when formula value totals zero

    Hi, I have a sum column which assigns a value of 1,2 or 3 if a C,D or CD is within a cell of the adjacent table. The formula used for this is on each row is =IF(A1="C",1,0)+IF(B1="D",1,0)+IF(C1="CD",3,0) however when a row has no data in at all, I want the cell to be be blank but as you can see from the attached, the value is shown as "0"

    Its probably a simple error in the formula used but I am new to excel calculations and would appreciate a little help if possible please.

    Many Thanks

    Andy
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: assign blank cell when formula value totals zero

    Just needs another If statement:

    Please Login or Register  to view this content.
    Say thanks, click *

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

    Re: assign blank cell when formula value totals zero

    for your formula you can use a 'wrapper' IF, it makes the formula longer, but does what you want :
    =IF(IF(A1="C",1,0)+IF(B1="D",1,0)+IF(C1="CD",3,0)>0,IF(A1="C",1,0)+IF(B1="D",1,0)+IF(C1="CD",3,0),"")

    I'm sure there are other solutions, but at this moment it was all I could come up with ...

    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

  4. #4
    Registered User
    Join Date
    03-15-2013
    Location
    southampton
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: assign blank cell when formula value totals zero

    Hi and thanks for your responses.

    That works fine, just what I was looking for.

    Andy

+ 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