Results 1 to 3 of 3

Thread: Comparing a cell to another cell within a range

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2011
    Posts
    14

    Comparing a cell to another cell within a range

    Hey everyone, I am stuck. I am trying to determine if an advertised price is lower than the list prices and return a msgbox if it is true. The list prices for each product are static in cells B8:B29 and the advertised prices are per company and are in C8:c29, D8: D29, etc and correspond to the same row as the list price. How do I compare each advertised price to the respective list price and return a msgbox if the advertised price is lower.

    I have created code to do it one column at a time just comparing the activecell to activecell.offset(0,-1), but it is tedious and there has to be a better way.

    Thanks in advance for your help!
    Last edited by bshafter; Aug 11th, 2011 at 02:27 PM.

  2. #2
    PowerPoster kaliman79912's Avatar
    Join Date
    Jan 2009
    Location
    Ciudad Juarez, Chihuahua. Mexico
    Posts
    2,593

    Re: Comparing a cell to another cell within a range

    There is a bit I do not understand. At what point is the message box to appear if the values are already there?
    More important than the will to succeed, is the will to prepare for success.

    Please rate the posts, your comments are the fuel to keep helping people

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2011
    Posts
    14

    Re: Comparing a cell to another cell within a range

    The values are gathered from web data, consolidated in a separate sheet, then transferred to this one to maintain a consistent formatting. There will be close to 30 companies with 21 products to check. I want to be able to refresh all of the data and a text box to appear with the company and product that is below list price.

    I'm sorry this is a bit confusing. The data is continually updated and too much to monitor or have just conditional formatting but if a text box appears then you are alerted to it and can investigate further.

    Hope this helps!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width