Results 1 to 9 of 9

date manipulation

Threaded View

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    date manipulation

    hi,

    im trying to learn date manipulation thru formulas
    i have a manually inputted date value in A2
    then a weekday function value in B2 =WEEKDAY(A2)

    then a formula in C2 =IF(OR(B2=1,B2=7),DATE(YEAR(A2),MONTH(A2),DAY(A2)-1),A2)
    which shows the previous day of the date value of A2 if B2 is 1 or 7

    how do i include in the formula of C2 to search also the values of N2:N6 which has the same date?

    so in turn in C2 it would show the previous day of the date value of A2 if B2 is 1 or 7 or if the date value of A2 is also in the range of N2:N6


    attached file as suggested
    Attached Files Attached Files
    Last edited by k1dr0ck; 08-16-2018 at 10:09 PM. Reason: attached file

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Date and time manipulation
    By AlexMK in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-30-2016, 02:40 AM
  2. Date Format Manipulation
    By Zagra147 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-06-2009, 05:43 AM
  3. Date manipulation
    By elite_thut in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-19-2008, 03:20 AM
  4. [SOLVED] Date manipulation
    By Rick A in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-22-2006, 01:35 PM
  5. Macro Date Manipulation
    By DKY in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-27-2006, 03:45 PM
  6. Replies: 2
    Last Post: 12-18-2005, 08:20 PM
  7. Problem with Date Manipulation
    By Sbufkle in forum Excel General
    Replies: 4
    Last Post: 11-24-2005, 11:45 AM

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