+ Reply to Thread
Results 1 to 2 of 2

Convert Weekly Off into Absent Excel VBA

  1. #1
    Registered User
    Join Date
    06-10-2011
    Location
    Delhi, India
    MS-Off Ver
    Excel 2003
    Posts
    1

    Post Convert Weekly Off into Absent Excel VBA

    Would request you to help me providing excel VBA code which will replace weekly offs and holidays into absent in Sheet 1 if employee's attendance status is absent before and after weekly offs or holidays

    In Sheet 1 we have attendance record Example...

    Employee ID, Name, 1-Jan 2-Jan 3-Jan 4-Jan 5-Jan 6-Jan 7-Jan 8-Jan
    M012345 ABC Present, Present, Absent, Weekly Off, Absent, Holiday, Absent, Present

    In Sheet 2 following columns contains list of text used for Present, Absent or Weekly Off and Holidays.

    Column A = List of text used for Present
    Column B = List of text used for Absent
    Column C = List of text used for Weekly Off and Holidays

    In above example in Sheet 1, I am looking for a excel VBA CODE which will replace the Weekly Off and Holiday into the word "Absent" in Sheet 1 because employee's attendance status is absent before and after weekly off or holiday and this logic should get checked for all the rows with data

    Thanks in advance
    Last edited by write2bhatt; 05-24-2022 at 02:56 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,618

    Re: Convert Weekly Off into Absent Excel VBA

    As the code will depend on data layout, please read the yellow banner at the top of the page.
    Or skip to extended version of it below:

    Will you please attach a SMALL sample Excel workbook(s) (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. (If there are typical cases like: all unique values/duplicates could occur, day/night, nobody present/several persons at once, before/on/past due, empty cells between data, mixed text/numbers, merged cells, some important cells filled with content by macro/manually/by formula, etc. - please show them all, or at least indicate in text). The use of unrepresentative data and formats is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution(s) is/are also shown (mock up the results manually).

    3. Make sure that all confidential/restricted information (either personal or business) like real e-mails, social security numbers, bank accounts, etc. is removed first!!

    To attach an Excel file you have to do the following (paperclip icon does not work!): Just before posting, scroll down and press Go Advanced button and then scroll down and press Manage Attachments link. Now follow the instructions at the top of that pop-up screen.
    Best Regards,

    Kaper

+ 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. Excel formula for Weekly off considered among absents days count as Absent
    By srinivasu23 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 04-28-2023, 07:19 AM
  2. [SOLVED] How to highlight absent dates in excel
    By Rakhi123 in forum Excel General
    Replies: 9
    Last Post: 05-12-2022, 01:54 AM
  3. Excel 2007 : How to convert weekly data to monthly data
    By kissanbhai009 in forum Excel General
    Replies: 3
    Last Post: 08-10-2017, 04:35 AM
  4. Convert weekly to monthly data
    By Svilen Pachedzhiev in forum Excel General
    Replies: 5
    Last Post: 08-10-2017, 04:09 AM
  5. Convert from Weekly to Monthly accurate to date
    By z3162238 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-16-2016, 10:53 AM
  6. Inventory movement convert daily to WEEKLY
    By makinmomb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-13-2014, 11:44 PM
  7. Using weekly data to convert to monthly
    By 1.zer0 in forum Excel General
    Replies: 10
    Last Post: 09-27-2010, 04:33 PM

Tags for this Thread

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