+ Reply to Thread
Results 1 to 1 of 1

VB code to Copy specific column from one sheet and paste into another based on a criteria

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Italy
    MS-Off Ver
    Excel 2003
    Posts
    1

    VB code to Copy specific column from one sheet and paste into another based on a criteria

    Hi Forum,
    I have a worksheet called as "data". The data worksheet has columns called as "Factory", Comodity, Designation,Current Supplier, Current Supplier cost,landed factor (I multiply the landed factor with the supplier cost to get the landed cost of that commodity for that factory). The total number of rows might exceed 1500. Same designation can be bought by many factories.
    Now I want to
    1.) for a given designation the minimum landed cost (landed cost = Supplier cost * Landed factor) and the supplier offering the minimum cost. Let us call it Best landed cost and Best supplier. Note based on the landed factor a supplier can be best for one factory but may not be best for some other factory. I have done it with the help of INDEX and MATCH function, but it makes the calculation very slow and takes a lot of time. I was wondering if a VB code will do it faster??
    2.)I have another sheet called as Table, In this sheet I want that when I select a particular factory it gives me the details of just that factory and not of others containing data as Name of Factory, Commodity, Designation, Current supplier, Current cost, Best supplier (in terms of landed cost) and best cost.

    I am attaching a file with dummy data so that colleagues in the forum can understand my requirement better.

    I hope with such great programmers in the forum my problem will be solved very quickly.
    Best regards
    Amit Bakshi
    Attached Files Attached Files

+ 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. Copy a row from master sheet and paste it to a specific worksheet based on tab name
    By obrie499 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2013, 10:45 AM
  2. Copy and Paste Rows based on Criteria onto another sheet and sort based on oldest item
    By Kushal8684 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-25-2013, 05:37 AM
  3. Code to copy and paste row from one excel sheet to another, based on criteria
    By CamSeren in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-25-2013, 04:32 AM
  4. HELP! Macro to Copy specific cells from one sheet to another based on specific criteria
    By atriscritti in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-11-2012, 11:05 AM
  5. [SOLVED] Copy and paste data from sheet 2 to sheet 1 based on specific criteria on sheet 1
    By VBADUD in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-05-2012, 04:18 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