+ Reply to Thread
Results 1 to 3 of 3

How to populate a new column of listed dates (-1 day) even if date is listed as "pending"

  1. #1
    Registered User
    Join Date
    02-07-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    How to populate a new column of listed dates (-1 day) even if date is listed as "pending"

    Column A lists dates (mm/dd/yyyy), but some cells = "Pending".

    I'd like Column B to list the dates in Column A minus 1 day. So right now in Column B, I've put "=(A1)-1" but the cells in Column A that = "Pending" are showing up in Column B as "#VALUE!".

    How can I make it so Column B lists the new date (Column A minus 1 day) and/or "Pending"?


    Thanks.
    Last edited by onecupatatime; 02-07-2014 at 05:51 PM.

  2. #2
    Registered User
    Join Date
    01-08-2014
    Location
    Irvine, CA ,USA
    MS-Off Ver
    Excel 2010
    Posts
    23

    Re: How to populate a new column of listed dates (-1 day) even if date is listed as "pendi

    Try this
    =IF(A1="Pending","Pending",A1-1)

    Charles

  3. #3
    Registered User
    Join Date
    02-07-2014
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: How to populate a new column of listed dates (-1 day) even if date is listed as "pendi

    Quote Originally Posted by ckim551 View Post
    Try this
    =IF(A1="Pending","Pending",A1-1)

    Charles
    Charles, thank you very much!

    It worked (I just had to add parentheses)

    =IF(A1="Pending","Pending",(A1)-1)

+ 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. Date filter, find listed dates and delete whole row
    By zit1343 in forum Excel General
    Replies: 3
    Last Post: 04-25-2012, 08:16 PM
  2. Options marked with an "X" listed in a single cell separated by commas
    By jpecor2 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-13-2011, 02:06 PM
  3. Replies: 5
    Last Post: 09-19-2008, 04:02 PM
  4. Replies: 1
    Last Post: 06-19-2006, 04:37 AM
  5. Not all open workbooks listed in "Window" menu.
    By markdon in forum Excel General
    Replies: 1
    Last Post: 01-20-2005, 05:24 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