![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 48
|
I have a table that has values that I need to compare. The table is as follows:
Warehouse Item Price1 Price2... So I have the same product in multiple warehouses and I want to make sure the prices match exactly. If they don't I want the rows highlighted. The file has about 10 warehouses and several dozen products and is a couple of thousand lines long. I tried doing this by having a conditional format that said if cell value does not equal cell value of row above then highlight, hoping that when I autofiltered the list it would reference the cell above it on the FILTERED list, instead it still referenced the cell above it befoire the filter so that did not work. Any ideas on how to handle this? Thank you. Tony |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
What does the data look like exactly? Your question makes it look like:
column A warehouse column B Item column C price column D price2 ...if so, what are the prices you want to compare across rows? |
|
|
|
|
|
#3 |
|
New Member
Join Date: Mar 2002
Posts: 48
|
I want to compare all prices for the same item regardless of the warehouse they are in. I want to highlight any price discrepencies between items. In other words for all rows that have itemX all Price1 should be the same, all price2 should be the same etc.
|
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
okay i see, how many columns after B are you comparing for rows of like ItemID, and do you want the whole row to highlight or just the cells that are non-matching?
I can write you some VBA. |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Posts: 48
|
I am comparing 20 rows across. And I would like the cells that are not matching to be highlighted.
Also, not sure if this makes it two hard, but I currently hand seperate the warehouses by region, can you have it do comparisons seperately for warehouses in the southwest region vs the northwest region (this is column A in the original sheet, I break it out manually). |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Mar 2002
Location: London, UK
Posts: 167
|
send me the worksheet if you like i'll have a look, am sure there is an easy solution for you else i'll code you something....
david@monnetqos.com |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|