+ Reply to Thread
Results 1 to 2 of 2

Need help with creating a macro that will insert a new column and extract the first value

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    United States, New Jersey
    MS-Off Ver
    2010
    Posts
    10

    Need help with creating a macro that will insert a new column and extract the first value

    I need help with creating a dynamic macro that will insert a new column on the side and extract the first "expected cost" of each "model" and delete the rest of the rows.

    Below is the part of the dataset that I need to use to create this macro.

    Here is the example/result that I am looking for.
    As you can see on the bottom, there are five different models. Each model has 2 or 3 expected cost.
    I want to create a dynamic macro that will extract the first expected cost for each model and put them into separate column.
    So, Model: WM3370HWA.ABWEPUS will have expected cost of 4, WM4270HWA.ABWEPUS will have expected cost of 1693, WM8000HWA.ABWEEUS will have expected cost of 1147 and so on.

    Your help will be greatly appreciated.

    Model Expected Cost(Editable)
    WM3370HWA.ABWEPUS 4
    WM3370HWA.ABWEPUS 321
    WM3370HWA.ABWEPUS 38
    WM4270HWA.ABWEPUS 1693
    WM4270HWA.ABWEPUS 12721
    WM8000HWA.ABWEEUS 1147
    WM8000HWA.ABWEEUS 8584
    WM8000HWA.ABWEEUS 29
    WT5680HVA.ASSEPUS 1800
    WT5680HVA.ASSEPUS 13519
    DLEX4270W.ABWEEUS 987
    DLEX4270W.ABWEEUS 7384
    DLEX4270W.ABWEEUS 33

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Need help with creating a macro that will insert a new column and extract the first va

    Does this do what you wanted:
    Please Login or Register  to view this content.
    See sheet2, attached.
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

+ 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. Need Help in Creating Macro to extract data from website.
    By houstonking in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-18-2014, 08:04 PM
  2. Creating a macro to insert a blank row and total sums in a new column
    By volleyballtigger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-23-2013, 10:42 AM
  3. Creating Macro to extract values from txt file
    By Gamerxx13 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-11-2013, 04:28 PM
  4. Creating a Macro Button to Extract Data
    By william4444 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-10-2009, 09:58 PM
  5. Creating a Macro Button to Extract Data
    By william4444 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-03-2006, 11:38 PM
  6. Creating a Macro Button to Extract Data
    By william4444 in forum Excel General
    Replies: 1
    Last Post: 07-03-2006, 09:04 AM
  7. Creating a Macro Button to Extract Data
    By william4444 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-02-2006, 11:24 PM

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