+ Reply to Thread
Results 1 to 5 of 5

Need a formula which leaves cell blank when no information entered

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2010
    Posts
    2

    Need a formula which leaves cell blank when no information entered

    Hi There

    Thank you in advance for any assitance you may be able to provide.

    I am currently creating a spreadsheet, where staff members in my organisation can enter information (relating to a Payment Plan for customers) into the relevant fields. I am then creating a letter template (to send confirmation of plan to customer) on another sheet, where by using formulas I pull through the information from the original sheet to populate the fields on the letter.

    I have encountered a problem when creating the formula for the address lines on the letter. Sometimes all four address lines will be used, but sometimes staff may only use 2 or 3 of these lines.

    When using a formula to draw the information from the first sheet to the letter template, I find that if there is no information entered into one of the cells on the original sheet, it populates the cell on the letter template with '0'.

    I would like to use a formula which basically checks if there is information in each cell, and if there isn't any information leave it blank instead of '0'.

    So in hazarding a guess, something along the lines of:

    =IF('Plan Details'C30=0;"";'Plan Details'C30)

    However I feel I am miles off track with the above, so if anyone could please shed any light on how I may go about this I would really really appreciate your input.

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,186

    Re: Need a formula which leaves cell blank when no information entered

    Close

    =IF('Plan Details'!C30="";"";'Plan Details'!C30)


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


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

    Re: Need a formula which leaves cell blank when no information entered

    That should work, athough this may be simpler if the data is just text:
    =""&'Plan Details'!C30
    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
    01-13-2013
    Location
    Auckland, NZ
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Need a formula which leaves cell blank when no information entered

    Thanks to you both for your replies - I really appreciate your help!

    I have tried your suggestion TMS, which appears to have worked so thank you so much!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,186

    Re: Need a formula which leaves cell blank when no information entered

    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)

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