+ Reply to Thread
Results 1 to 8 of 8

How to skip Sundays while adding data in an Excel sheet

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    61

    How to skip Sundays while adding data in an Excel sheet

    I have a date in column "A" like 01-01-2016, 02-01-2016, 03-01-2016 etc. In column "B" I have batch numbers against each date. Normally the batch number starts with 001 at the beginning of the year and running through the year with an increment 1 skipping Sundays. I did manually. Please help me the formula.

    01-01-2016 001
    02-01-2016 002
    03-01-2016
    04-01-2016 003
    05-01-2016 004
    06-01-2016 005
    07-01-2016 006
    08-01-2016 007
    09-01-2016 008
    10-01-2016
    11-01-2016 009
    12-01-2016 010
    ...
    ...
    ...

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to skip Sundays while adding data in an Excel sheet

    Hi Assuming your data starts in A2 then in B2 copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Before copying down first format B2 to be '000'
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,937

    Re: How to skip Sundays while adding data in an Excel sheet

    Data Range
    G
    H
    1
    1/1/2015
    1
    2
    1/2/2015
    2
    3
    1/3/2015
    3
    4
    1/4/2015
    5
    1/5/2015
    4
    6
    1/6/2015
    5
    7
    1/7/2015
    6
    8
    1/8/2015
    7
    9
    1/9/2015
    8
    10
    1/10/2015
    9
    11
    1/11/2015
    12
    1/12/2015
    10
    13
    1/13/2015
    11
    14
    1/14/2015
    12
    15
    1/15/2015
    13
    16
    1/16/2015
    14
    17
    1/17/2015
    15
    18
    1/18/2015
    19
    1/19/2015
    16
    20
    1/20/2015
    17

    In H3, type =IF(WEEKDAY(G3)=1,"",IF(H2="",H1+1,H2+1)) and copy down, H1 and H2 are populated manually
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    01-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: How to skip Sundays while adding data in an Excel sheet

    Sorry I forget to add the attachement.

    I need help on that file
    Attached Files Attached Files

  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to skip Sundays while adding data in an Excel sheet

    Hi,

    It is incumbent on you when asking a question and offering an example that the information you give us accurately reflects your production workbook. Otherwise we all end up wasting a lot of time.

    In this case the file you've attached contains a completely different data set layout to the one you first mentioned. Furthermore there is at least one seeming inconsistency since your batch number 049 is repeated in columns D & F

    Please explain clearly exactly what is your requirement. I'm assuming the Batch 49 is an error but do tell us before we waste more time.

  6. #6
    Registered User
    Join Date
    01-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: How to skip Sundays while adding data in an Excel sheet

    Quote Originally Posted by Richard Buttrey View Post
    Hi,

    It is incumbent on you when asking a question and offering an example that the information you give us accurately reflects your production workbook. Otherwise we all end up wasting a lot of time.

    In this case the file you've attached contains a completely different data set layout to the one you first mentioned. Furthermore there is at least one seeming inconsistency since your batch number 049 is repeated in columns D & F

    Please explain clearly exactly what is your requirement. I'm assuming the Batch 49 is an error but do tell us before we waste more time.
    Apologies, not to explain clearly. Instead of having the whole year in a single column I have formatted in a monthly format to suit in a single page printout.

    the file is which I have uploaded is with errors, just to understand my requirement. Please ignore the errors, and once again apologies for wasted all of your valuable time.

  7. #7
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: How to skip Sundays while adding data in an Excel sheet

    In B7 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In D7 and alternate columns copied down

    =IF(C7<>"",I
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-11-2013
    Location
    chennai
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: How to skip Sundays while adding data in an Excel sheet

    Quote Originally Posted by Richard Buttrey View Post
    In B7 copied down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In D7 and alternate columns copied down

    =IF(C7<>"",I
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Excellent, works fine. Thanks a lot

+ 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. Replies: 6
    Last Post: 03-08-2017, 12:42 AM
  2. [SOLVED] Help needed making portions of a drag down/multi sheet data pull formula skip cells
    By vmackie in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-21-2014, 05:14 PM
  3. Loop through dates and copy/paste Saturdays and Sundays to another work sheet
    By Jeep56 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-18-2013, 05:00 PM
  4. [SOLVED] If B2 = 1 then pull data into sheet 2, if B2 is blank skip to next 1
    By djauncey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2013, 10:22 AM
  5. Replies: 1
    Last Post: 08-18-2012, 06:59 PM
  6. Replies: 1
    Last Post: 11-08-2010, 02:15 PM
  7. Excel - list days of a month, excluding Sundays
    By John in forum Excel General
    Replies: 1
    Last Post: 01-03-2006, 12:50 PM
  8. [SOLVED] calculate how many sundays between two dates in excel
    By jeff thinkin in forum Excel General
    Replies: 2
    Last Post: 09-14-2005, 11:05 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