+ Reply to Thread
Results 1 to 4 of 4

Data extraction using a a cell reference

  1. #1
    Registered User
    Join Date
    10-12-2013
    Location
    United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    21

    Data extraction using a a cell reference

    Hello

    I have a canteen attendance sheet which will be marked with "x"for the corresponding date if the Staff Member has utilized the facility irrespective of actual consumption the fixed menu charges are applied and the canteen operator has to send a daily report as in the attached sheet.
    A maximum of 20 Staff will use the facility on any given date
    I would like to generate a PDF report and mail it to the finance from the given work book. What is the VBA code ?

    What is the excel formula to get data based on date cell -" H3"

    Please help

    Noushad

  2. #2
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data extraction using a a cell reference

    This doesn't use VBA but it should get you started. The attendees are taken from the Attendance sheet where an X is filled in for the date. The X is also entered in column H of the same worksheet. You can probably record a macro to blank the meals data and then fill in what each person had.

    The macro if you record it will look something like this:

    Please Login or Register  to view this content.
    Last edited by newdoverman; 10-27-2013 at 04:14 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  3. #3
    Registered User
    Join Date
    10-12-2013
    Location
    United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Data extraction using a a cell reference

    Hello newdoverman
    Thanks for the VBA code.
    It clears the meals from the cells. But that is not the purpose.
    By entering the day number in H3 , I should be able to populate the data in the "Daily Report" sheet.
    For instance on if the date is 8 th , H3 will have "8" and all "X" marked in "Attendance" sheet O3:O27 should be brought to the Daily Report sheet along with corresponding data A3:G27 in attendance sheet. May be Index or ISNA function ?
    Regds
    Noushad

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Data extraction using a a cell reference

    That isn't a problem except that someone going to a canteen would have exactly the same thing every time. That is very unlikely. This file version will however do as you ask.

+ 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: 2
    Last Post: 03-03-2012, 12:58 PM
  2. Display data reference from another worksheet based on cell reference
    By Drew123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-18-2011, 03:52 PM
  3. automate single cell data extraction and matching...
    By soundchaser77 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-24-2009, 10:19 PM
  4. Excel 2007 : Data extraction:numbers within a cell
    By lukemartin1976 in forum Excel General
    Replies: 2
    Last Post: 12-02-2008, 10:52 AM
  5. Data Extraction from a cell
    By Gordon in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-16-2006, 07:20 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