+ Reply to Thread
Results 1 to 4 of 4

Macro to Look Up and Sort

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Macro to Look Up and Sort

    Hi,

    I’m trying without success to write code to extract into the “Look Up” sheet from the “Data” sheet each Product for which the Data Type is “Current” (column B in “Data”). An added wrinkle is that I would like the results in “Look Up” to be sorted in descending order of the relative relationship (ie ((1+Growth %/100)/(1+Growth %(base)/100)-1)*100) between each product’s growth rate and that of its base (columns C and D in “Data”).

    The results that I’d expect are entered in A2 :C4 in the “Look Up” sheet.

    Can someone please suggest VBA code that would accomplish these results?

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 10-14-2013 at 03:19 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Macro to Look Up and Sort

    Hi

    Give a try to this. In fact we use the advanced filter option.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Macro to Look Up and Sort

    You have not shown "An added wrinkle" on your result, so I am sure I am missing something.
    Attached Files Attached Files
    Last edited by AB33; 10-14-2013 at 10:43 AM.

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Macro to Look Up and Sort

    Thank you both!

+ 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. macro sort
    By odieses in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-03-2013, 06:18 AM
  2. Sort Macro does not sort - please help
    By bobo1000 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2012, 03:40 AM
  3. Macro to sort colums and protect after sort
    By SilverFox in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-05-2009, 07:12 AM
  4. Sort Macro
    By kronik in forum Excel General
    Replies: 0
    Last Post: 03-13-2006, 11:58 AM
  5. Sort Macro
    By Sprinks in forum Excel General
    Replies: 1
    Last Post: 04-19-2005, 12:06 PM

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