+ Reply to Thread
Results 1 to 6 of 6

How to make cells show blank based the cell to the left

  1. #1
    Registered User
    Join Date
    09-18-2015
    Location
    Swansea
    MS-Off Ver
    2013
    Posts
    3

    How to make cells show blank based the cell to the left

    I am trying to build a spread sheet for work, a crude CRM tool and I am now at the point where I can do extremely basic conditional formatting but building workable formulas is proving hard:

    Problem Number 1:

    1. I have a cell called 'number of days' it is the cell that captures the date difference between the date a sales engineer does a site visit, and the date a quote is raised -

    When a quote is needed I have created a conditional format that changes the colour of a cell for the entry of the 'quote number', the next cell will have the date the quote is raised, then the next cell is for the number of days between the site visit and the quote being raised, my question is:

    If there is no quote, then the conditional formatting doesn't get enabled which is perfect, but how do I make the cells that WON'T have a date in them not do the calculation for the date difference and remain totally blank

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

    Re: How to make cells show blank based the cell to the left

    Test that both date cells do in fact contain dates.

    =IF(COUNT(A1,B1)<2,"",your original formula here)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-18-2015
    Location
    Swansea
    MS-Off Ver
    2013
    Posts
    3

    Re: How to make cells show blank based the cell to the left

    Temp CRM Excel Test Tool v3.xlsxHi Tony Thanks

    I have the dates formats ok, I think, frankly I am a novis to Excel and trying to learn as much as possible about Excel and VB as soon as possible,

    I have attached an extract of my Sales Activity and CRM combined tool that I have built so far, and I would appreciate an advice on more functionality

    Or if anyone can advise what to read, research I just want to learn, but have no idea where to start to get on my way to being a VBA expert one day.

    Columns U and V are ones that need to react when a quote drop down is selected in column L (which triggers conditional formatting of column T, which is what I wanted, but if a quote isn't needed, I don't need to see the date or days lapsed since sales activity...I trust that make more sense, my apologies if I have some across vague but all new to me.

  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: How to make cells show blank based the cell to the left

    Quote Originally Posted by ScottKiwi View Post
    Attachment 419951

    Columns U and V are ones that need to react when a quote drop down is selected in column L (which triggers conditional formatting of column T, which is what I wanted, but if a quote isn't needed, I don't need to see the date or days lapsed since sales activity...I trust that make more sense, my apologies if I have some across vague but all new to me.
    OK, if a quote isn't needed then how do we know that? There is not a selection for that in the drop down list.

  5. #5
    Registered User
    Join Date
    09-18-2015
    Location
    Swansea
    MS-Off Ver
    2013
    Posts
    3
    Quote Originally Posted by Tony Valko View Post
    OK, if a quote isn't needed then how do we know that? There is not a selection for that in the drop down list.
    Hi Tony

    The spread sheet is filled in by an admin clerk from info from the sales engineers manual call sheets and dependant in the outcome of the call one of the drop down choices will be relevant at worse case it would be the last one

    I have I think used the icons to give some sort of visual scoring to the first part of the call record

    Any advice you can give is more than welcome

    Cheers

    Scott

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

    Re: How to make cells show blank based the cell to the left

    I'm confused!

    See if this is does what you want.

    Entered in V9 and copied down as needed:

    =IF(COUNT([@[Date ]],[@[Date Quote Raised]])<2,"",[@[Date Quote Raised]]-[@[Date ]])

+ 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. How can I make multiple cells mandatory if new rows are used with some cells left blank?
    By markbarnett in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2015, 07:06 AM
  2. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  3. [SOLVED] Using = to another sheet, how to make blank cells show nothing
    By simple? in forum Excel General
    Replies: 3
    Last Post: 08-15-2013, 11:06 AM
  4. [SOLVED] merging cells if cell either to the right or left is blank
    By liz5818 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2013, 03:26 PM
  5. Make an error show blank cell
    By cadamhill in forum Excel General
    Replies: 6
    Last Post: 04-12-2011, 10:47 AM
  6. How can I make an error message display when a required cell is left blank?
    By saulmgf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-04-2008, 03:45 PM
  7. [SOLVED] Re: make cell show blank when total is zero
    By Bob L in forum Excel General
    Replies: 3
    Last Post: 05-19-2006, 12:04 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