+ Reply to Thread
Results 1 to 4 of 4

Chemical Inventory

  1. #1
    Registered User
    Join Date
    09-10-2010
    Location
    Bradford
    MS-Off Ver
    Excel 2003
    Posts
    2

    Chemical Inventory

    Hi All,

    I am currentley creating a chemical inventory spreadsheet in our department at work and all you have to do is put the date in that we receive the chemical and it works out the expiry date and every time you open the spreadsheet it works out whether chemicals have expired from the current date, and on the menu displays how many chemicals are in the database and how many have expired.

    What I want to do is when you press the expiry Report Button, a search is started in columns E and G in the sheets (Flam, Fridge, Cupb and Bench) for any "EXP" cells (there are some in the attatched file). Then when it finds an "EXP" cell I want it to copy that entire row and put it into the Report sheet (The sheet that it currently goes to when you press the Expiry Report button from the menu), so at the end I want it to display a list of the chemicals in the Report sheet that have expired.

    If anyone can help it will be much appreciated. Also I am quite new to macros and dont have much knowledge of viusal basic, which I assume will have to be used as I dont think you can do this with formulas can you? so please could you tell me exactly how to do this in simple steps. Thanks.

    I have attatched my worksheet.
    Attached Files Attached Files
    Last edited by Jim123; 09-14-2010 at 05:03 AM.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Chemical Inventory

    1) I added a DE/STD column to the two sheets it was missing from so all sheets have the same headers in row 5.

    2) Then this macro goes into the Report SHEET module:
    Please Login or Register  to view this content.

    Basically, each time you bring up the Report onscreen it will collect all the data in again for you, so it's always current.
    Attached Files Attached Files
    Last edited by JBeaucaire; 09-10-2010 at 10:50 AM. Reason: updated copy command
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    09-10-2010
    Location
    Bradford
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Chemical Inventory

    Hiya,

    Thanks for that, that is exactly what I wanted and works brilliant.

    Cheers

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Chemical Inventory

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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