+ Reply to Thread
Results 1 to 6 of 6

Formula containing two conditions and null values

  1. #1
    Registered User
    Join Date
    06-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2010
    Posts
    42

    Formula containing two conditions and null values

    Hi,

    This is a question about creating a calculated formula in Tableau from a flat file Excel spreadsheet. I'm not sure if you guys can help, but here it goes:

    I have an Excel file with 10 data sets that are duplicated 5 times each to account for the data set passing through five different stages in a value stream. Each data set lists a date when it passes through a stage.

    I need a formula where if a cell in column C is empty and a cell in column B is NOT empty then it will calculate the number of days difference between today's date minus the date in cell B.

    Can anyone help?

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula containing two conditions and null values

    Assuming your data starts in C1 and B1, and that your formulas coincide on the same row, try this:

    Please Login or Register  to view this content.
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Registered User
    Join Date
    06-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Formula containing two conditions and null values

    Hmm, that seems like it should work, but Tableau says "cannot compare date and string values". Maybe because of the ""?

  4. #4
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula containing two conditions and null values

    Are your excel values in column B stored as text? Try this:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-12-2012
    Location
    DC
    MS-Off Ver
    Excel 2010
    Posts
    42

    Re: Formula containing two conditions and null values

    Still receiving the same error. I used this:

    IF([Transaction Date]="" AND [Start Date]<>"") THEN TODAY()-DATE([Start Date]) END

    Transaction Date and Start Date are the fields.

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Formula containing two conditions and null values

    If you're using Excel, this is not the right syntax. Using your fields, it should be"

    Please Login or Register  to view this content.
    If that doesn't work you may want to provide a sample workbook.

+ 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] Need vba or formula help to set values depends upon 3 conditions values in 3 col
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-17-2014, 12:34 PM
  2. [SOLVED] Formula to get look up values based on multiple conditions
    By Excel Dumbo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-29-2013, 12:17 AM
  3. [SOLVED] Formula needed to find AVERAGE over last 21 values > zero or null
    By Skidder in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-02-2012, 06:44 PM
  4. Replacing "0" values with null string in array while preserving cell formula
    By AlvaroSiza in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-29-2007, 01:07 PM
  5. selectin all the values in a column including null values
    By Purnima Sharma in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2005, 12:25 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