+ Reply to Thread
Results 1 to 9 of 9

Mark the Lowest price in a price-matrix

  1. #1
    Registered User
    Join Date
    08-05-2008
    Location
    Jordan
    Posts
    17

    Mark the Lowest price in a price-matrix

    hi all,

    i have this table of destinations and prices offered from different carriers for those destinations, what i need is find out the lowest three prices for each destination, the table looks like below:

    ---A-----------B------------C---------D-------E----------F
    1--Country-Country Code--A price----B Price--C Price---D Price
    2 --UK-----------445------2.8--------3.1-------1.9------3.0
    3--USA----------112------3.0--------4.0---------5------5.5
    4-INDIA----------919----- 2.1--------3.2-------3.4-------3.1

    so the resulted table should highlight the lowest 3 prices for each destination, taking in consideration that my table contains 9 different prices from 9 different companies for each destination with more than 25,000 records, note that if you have any alternative method to retrieve the lowest values, feel free to use it as my purpose is just to know which operators offer the lowest prices

    please find attached a sample of the table, and many thanks in advance
    Attached Files Attached Files
    Last edited by raed_237; 04-07-2009 at 01:23 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Mark the Lowest price in a price-matrix

    I think it would be very hard because you don't have separated countries. For example, you have ALBANIA TIRANE and Albania,Tirana.

    Probably it would be easier if you would have all this in two columns... Countr + rest


    Please Login or Register  to view this content.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mark the Lowest price in a price-matrix

    Select C2:K54 and invoke Conditional Formatting from the Home tab

    Select New Rule

    Select Use a Formula to determine which cells to format

    Enter formula: =AND(C2<=SMALL($C2:$K2,3),C2<>"")]

    Click Format to choose your highlighting preferences.

    Click Ok

    Click Ok to finish.
    Attached Files Attached Files
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Mark the Lowest price in a price-matrix

    It's working.. i thought that i.e. Algeria - Mobile Orascom is one destination... WD NBVC if this is only he need

  5. #5
    Registered User
    Join Date
    08-05-2008
    Location
    Jordan
    Posts
    17

    Re: Mark the Lowest price in a price-matrix

    Quote Originally Posted by NBVC View Post
    Select C2:K54 and invoke Conditional Formatting from the Home tab

    Select New Rule

    Select Use a Formula to determine which cells to format

    Enter formula: =AND(C2<=SMALL($C2:$K2,3),C2<>"")]

    Click Format to choose your highlighting preferences.

    Click Ok

    Click Ok to finish.
    well many thanks my friend, it works like a charm, though there is still one issue, can i make a range of highlighted colors, for example red for the lowest
    price, orange for the second lowest and yellow for the third lowest, thanks again and much appreciated.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mark the Lowest price in a price-matrix

    See attached...

    3 separate conditional formats are now applied

    =AND(C2=SMALL($C2:$K2,1),C2<>"")

    =AND(C2=SMALL($C2:$K2,2),C2<>"")

    =AND(C2=SMALL($C2:$K2,3),C2<>"")
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-05-2008
    Location
    Jordan
    Posts
    17

    Re: Mark the Lowest price in a price-matrix

    Quote Originally Posted by NBVC View Post
    See attached...

    3 separate conditional formats are now applied

    =AND(C2=SMALL($C2:$K2,1),C2<>"")

    =AND(C2=SMALL($C2:$K2,2),C2<>"")

    =AND(C2=SMALL($C2:$K2,3),C2<>"")
    Man...What can i say?
    really appreciate ur help mate, thanks alot and may God bless u

  8. #8
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Mark the Lowest price in a price-matrix

    You're welcome..

    Can you please mark your thread as Solved?

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

  9. #9
    Registered User
    Join Date
    08-05-2008
    Location
    Jordan
    Posts
    17

    Re: Mark the Lowest price in a price-matrix

    Quote Originally Posted by NBVC View Post
    You're welcome..

    Can you please mark your thread as Solved?

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Done Man

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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