+ Reply to Thread
Results 1 to 2 of 2

Comparing values in a column

  1. #1
    Registered User
    Join Date
    07-02-2012
    Location
    Portland, Oregon
    MS-Off Ver
    Excel 2010
    Posts
    3

    Smile Comparing values in a column

    Hello!

    I have a price column and a product column in an Excel Worksheet. There are many of the same products, but some of the products with the same name have different prices. I want Excel to find the majority price and mark or find the prices that are different (not part of the majority). Is this possible? Thanks for the help in advance!!!

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Comparing values in a column

    Based on products in A2:A100 with prices in B2:B100, in C2 enter the following formula

    =MODE(IF(A2=A$2:A$100,B$2:B$100))

    which must be array confirmed using Shift Ctrl & Enter, not just Enter. Use autofill to populate the rest of column C, this will list the majority prices.

    Next use conditional formatting and apply a rule using the formula =$B2<>$C2 to highlight rows where the price in column B differs from the majority price returned by the array formula in column C.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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