+ Reply to Thread
Results 1 to 7 of 7

Copying Data from sheet to sheet base on one cell value.

  1. #1
    Registered User
    Join Date
    07-18-2013
    Location
    Alaska
    MS-Off Ver
    Excel 2008
    Posts
    3

    Copying Data from sheet to sheet base on one cell value.

    Hello. Thank you for taking the time to read this message.

    I have little experience with excel but have become good at figuring it out. I'm currently at a loss. I'm sure this situation has been covered on the forum before but I'm unable to locate a solution.

    The overview of what I'm wanting is a excel file to generate receipts when items are removed from an inventory for each day that they are removed.

    In my attached file, I would like to have data from certain cells on sheet 'Collections Spreadsheet' transfered to the sheet 'MTRtemplate'. This data should correspond to the values in the related cells. On the 'MTRtemplate' under my "material description" heading I have columns for Client Code Collection, Box No. Item Code, Media ID/Catalog No.,Format, and Title. I would like these cells to be automatically filled based on the value in column F "Status" on sheet 'Collections Spreadsheet'. If the value in the cell is "Temporary" or "Permanent", then the data from the columns Client Code Collection, Box No. Item Code, Media ID/Catalog No.,Format, and Title (or A, B, C, D, O, and P) should be entered on the sheet 'MTRtemplate' in columns in columns A-F and rows 21 and beyond. When the status is changed I would for the date to be enter into column G "Date Removed. Finally, the last condition of this is the on my "MTRtemplate" I would like to only take the values that meet the "temporary" and "permanent" requirement if the "Date Removed" and "Transaction Date" on the 'MTRtemplate" sheet match.

    If possible, there are a couple other things I'd like to do with it additionally. I'd like it to sort based on it's status (i.e. temporary then permanent).

    Sorry if this is unclear. I sounds clear in my head when I read it. If you need more clarification, please let me know.

    Thank you for any help you can provide!
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Copying Data from sheet to sheet base on one cell value.

    Is this what you're looking for? I put it on a pivot table, and added a filter. You can select the items on want on the filter and hide the filter row. You hit refresh all each time you have new data and it should populate. Good luck.
    Attached Files Attached Files

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copying Data from sheet to sheet base on one cell value.

    I use an auto-ranking sheet for my company's bonus programs that's similar to your needs.

    I added:

    Column G beginning with G2 and pasted downwards:
    =IF(OR(F2="Temporary",F2="Permanent"),DATEVALUE(TEXT(NOW(),"mm/dd/yyyy")),"")

    This enters a date when the Status changes, cuts off the timestamp, and reformats to a standard mm/dd/yyyy so it can be compared to the Transaction date.

    I used two helper columns which I inserted as H and I.

    Column H beginning with H2 and pasted downwards:
    =IF(G2=MTRtemplate!$E$10,VLOOKUP(F2,'Authority Lists'!$I$2:$J$4,2,0),"")

    This checks if the Date Removed = Transaction Date, and then adds a 2 or 3 based on if Status is Temporary or Permanent. (I defined this as a vlookup for values I stored on your Authority List.)

    Column I beginning with I2 and pasted downwards:
    =RANK(H2,$H$2:$H$25000,0)+COUNTIF($H$2:H2,H2)-1

    This assigns a rank to each Status Value and avoid duplicate ranks such that they increment even if there are multiple Temporary's, etc.


    I added a tab into the workbook that counts the total ranking values, and relists only those in their new order.
    The MTRtemplate is then fed from this tab, exluding all the garbage.

    Columns H and I on the Collections Spreadsheet can be hidden or copied and pasted further down the page if you need.

    Feel free to play around with it. Everything on MTRtemplate auto-updates based on Collections Statuses, Date Removed, Transaction Date.

    Attachment 251309

  4. #4
    Registered User
    Join Date
    07-18-2013
    Location
    Alaska
    MS-Off Ver
    Excel 2008
    Posts
    3

    Re: Copying Data from sheet to sheet base on one cell value.

    igoodable

    Thank you very much for the help.

    Unfortunately, I'm having trouble getting the results that I was wanting. When the file opens all the data from the 'Collection Spreadsheet' is listed. When I try to refresh and limit the shown data, such as only listing the Items with a Temporary status, nothing shows up. Any Ideas?

    Thank you for the effort.
    Last edited by ProjectMuyo; 07-18-2013 at 07:46 PM. Reason: forgot name of user being addressed

  5. #5
    Registered User
    Join Date
    07-18-2013
    Location
    Alaska
    MS-Off Ver
    Excel 2008
    Posts
    3

    Re: Copying Data from sheet to sheet base on one cell value.

    daffodil11

    It looks like your attachment didn't upload. Could you try up loading again.

    I tried inserting your formulas. They look good but I'm unable to get them to work.
    Last edited by ProjectMuyo; 07-18-2013 at 07:44 PM. Reason: forgot user name for user being addressed

  6. #6
    Forum Contributor
    Join Date
    07-16-2013
    Location
    Houston, Texas
    MS-Off Ver
    Excel 2013
    Posts
    176

    Re: Copying Data from sheet to sheet base on one cell value.

    here are the temp items only.
    Attached Files Attached Files

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Copying Data from sheet to sheet base on one cell value.

    I'll try again.

    MTRtemplate-daffodil.xlsx

    You just have to change the date on the Template tab.

+ 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. [SOLVED] URGENT Pls help - Copying information from sheet 1 to sheet 2 base on a match of a value
    By 5er3ne in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-26-2012, 08:39 AM
  2. Replies: 3
    Last Post: 04-26-2012, 05:15 PM
  3. Base on first sheet ,second sheet data auto arrange.
    By johncena in forum Excel General
    Replies: 2
    Last Post: 03-09-2012, 07:30 AM
  4. Copying a template sheet and putting those multiple sheets data into a summary sheet
    By John Wolfe in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-18-2011, 06:29 PM
  5. Replies: 4
    Last Post: 03-22-2011, 02:26 AM

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