+ Reply to Thread
Results 1 to 2 of 2

Pulling data from two separate sheets and compiling into a new table

  1. #1
    Forum Contributor
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    191

    Pulling data from two separate sheets and compiling into a new table

    Hi All,

    I have two sheets in a workbook outputting live data from our system and I'd like to create a third sheet that displays some of the information with some calculations too. The aim is to display every batch of material we have in the system that has both a positive stock quantity and a use by date, and then sort it in date order. I have attached a sample workbook, sheets one and two are what I get from the system, sheet three is a mock up of the output I'd like to get. Here's how I've calculated the five columns:

    UseByDate - Every line in sheet 2 that has a non-zero entry in column F
    Batch - Column B of sheet 2. For every entry in column F I want to pull the same row of column B
    Material - I used a lookup between the sheets as column H on sheet 2 corresponds to column A on sheet 1, then taking the value in column B of sheet one to get the material number
    Qty - Using columns I and J of sheet 2 subtracted from one another to get the qty of the batch that remains in stock. I only want to pull through positive quantities
    Value - Unit value pulled from column V of sheet 1 and multiplied by the qty

    I'm looking for a macro that we can run as the data from the system keeps updating and sheets one and two keep refreshing. I know it's quite a challenge, any help would be greatly appreciated! Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Pulling data from two separate sheets and compiling into a new table

    Quote Originally Posted by TPDave View Post
    UseByDate - Every line in sheet 2 that has a non-zero entry in column F
    Batch - Column B of sheet 2. For every entry in column F I want to pull the same row of column B
    Material - I used a lookup between the sheets as column H on sheet 2 corresponds to column A on sheet 1, then taking the value in column B of sheet one to get the material number
    Qty - Using columns I and J of sheet 2 subtracted from one another to get the qty of the batch that remains in stock. I only want to pull through positive quantities
    Value - Unit value pulled from column V of sheet 1 and multiplied by the qty
    I think I followed the instruction, but the result in calculated column differ from yours.
    Please Login or Register  to view this content.

+ 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. Pulling Information from separate sheets....
    By wblewis935 in forum Excel General
    Replies: 5
    Last Post: 02-05-2016, 05:41 PM
  2. Pulling Data from multiple workbooks and compiling using VBA
    By TexasOil91 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2015, 10:48 PM
  3. [SOLVED] Pulling Data from two separate sheets based on criteria on both those sheets
    By mlbdc2012 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-31-2015, 03:57 PM
  4. [SOLVED] Pulling Data to separate sheets based on one column
    By joliver in forum Excel General
    Replies: 10
    Last Post: 10-04-2013, 05:14 PM
  5. Compiling data from one column into separate columns
    By Leinad7x in forum Excel General
    Replies: 4
    Last Post: 11-10-2012, 09:42 AM
  6. Pulling data from worksheets, compiling it in CSV file
    By boydam in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2010, 12:58 PM
  7. compiling/pulling data (range) in different files into one file
    By perinouk in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2007, 08:28 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