Results 1 to 1 of 1

Macro to compare with group of data and sort accordingly

Threaded View

  1. #1
    Registered User
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2011
    Posts
    1

    Lightbulb Macro to compare with group of data and sort accordingly

    HI i need a VBA macro to perform some function in EXCEL. I have attached the file

    Checking.xlsm

    In the attached Excel. I have some sequence of Values in column A. For Better Clarity i have added the image below in this table

    Capture.JPG

    This is how my data looks most of the time and the maximum number in the column A here i mentioned is jus 5. but it is not fixed, it may vary

    THis is my Algorithm

    1. TO check the Max values present in Column A
    2. TO Start of my program, the code should directly go to (2,1). That is the value in the column A should be 2 and its corresponding value in column B should be 1.
    3. Now the value corresponding to that in cell D and cell E should be compared with with group 1 data of cell D and E. For better clarity i have added image below

    Picture1.jpg

    4. The value in Cell D and Cell E matches with any one of the values in Cell D and E in group 1. then nothing shoould be done. IF it doesnt matches, then i need to select group 2 and sort based on column in descending order..

    5. Next i need to go (3,1) that is value in column A should be 3 and value in column B should be 1. again same process its corresponding value in Cell D and E should be compared to Group 2 this time, i.e compared with values of cell D and Cell E in group 2 and if it doesnt matches, Group 3 should be selected and sored based on column B in descending order...

    Finally wen it comes to group 5, (5,1) and its corresponding Cell D and Cell E data shd be compared with group 1 datas and sorted..


    Can anyone give any suggestion to this automation.
    Your Valuable suggestion will be very much helpful to me

    Thanks
    Barath
    Last edited by barath3_s; 08-10-2013 at 01:38 PM. Reason: Didnt match FOrum rules

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Macro to show Which macro didnt work in a nested macro
    By akhileshgs in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-10-2013, 03:21 AM
  2. Perform macro "on open" specific file- store macro in Personal Macro Workbook?
    By thompssc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-17-2012, 12:38 PM
  3. lookup macro, solver macro, realtime macro
    By xelhelp in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-02-2011, 06:14 PM
  4. Cannot find macro error when running a macro from a macro in a diffrent workbook.
    By Acrobatic82 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-05-2010, 09:22 AM
  5. Macro calling another Macro: "The macro 'Personal.xls!FindChar"
    By William Benson in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-07-2005, 09:05 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