richh
Board Regular
- Joined
- Jun 24, 2007
- Messages
- 245
- Office Version
- 365
- 2016
I'm trying to do a price comparison on two lists of books. Both lists have books that are in both sheets and some that are not in the other. I took both BOOKS lists from sheet 1 and 2, pasted in sheet 3, and removed the duplicates. I would really like to see if theres a way just to return "Vendor 1 is cheaper" "Vendor 2 is cheaper" based on the cost of each title. However, I don't know if there's a way to do a conditional formatting that compares cells in two columns based off two other cell ranges equating to a single cell... ergo, I thought I'd just pull the values and do a greater than formatting.
I haven't dived too deep into Excel formatting, so bear with me if you look at what I've tried and go "lol this guy is a nincompoop..."
=IF(Sheet1!A:A=Sheet3!A1, Sheet1!B:B, "N/A")
=IF(ISNA(MATCH(Sheet3!A1,Sheet1!A:A,0)), Sheet1!B:B, 0) - this did the same thing as the previous statement I think. it seems to return the B:B value only if Sheet3's A value is in the same rownum as Sheet1's A value. I could return 1 or 0 for the true/false, just not the correlating cell value in another column.
Sheet 1 contains
BOOKS | PRICE
Book 1 | $5
Book 2 | $6
Book 3 | $7
Book 4 | $8
Sheet 2 contains
BOOKS | PRICE
Book 3 | $12
Book 4 | $11
Book 5 | $9
Book 6 | $10
Sheet 3 SHOULD contain
BOOKS | V1 PRICE | V2 PRICE
Book 1 | $5 | N/A
Book 2 | $6 | N/A
Book 3 | $7 | $12
Book 4 | $8 | $11
Book 5 | N/A | $9
Book 6 | N/A | $10
Any pointers you glorious geniuses can give me would be amazing.
I haven't dived too deep into Excel formatting, so bear with me if you look at what I've tried and go "lol this guy is a nincompoop..."
=IF(Sheet1!A:A=Sheet3!A1, Sheet1!B:B, "N/A")
=IF(ISNA(MATCH(Sheet3!A1,Sheet1!A:A,0)), Sheet1!B:B, 0) - this did the same thing as the previous statement I think. it seems to return the B:B value only if Sheet3's A value is in the same rownum as Sheet1's A value. I could return 1 or 0 for the true/false, just not the correlating cell value in another column.
Sheet 1 contains
BOOKS | PRICE
Book 1 | $5
Book 2 | $6
Book 3 | $7
Book 4 | $8
Sheet 2 contains
BOOKS | PRICE
Book 3 | $12
Book 4 | $11
Book 5 | $9
Book 6 | $10
Sheet 3 SHOULD contain
BOOKS | V1 PRICE | V2 PRICE
Book 1 | $5 | N/A
Book 2 | $6 | N/A
Book 3 | $7 | $12
Book 4 | $8 | $11
Book 5 | N/A | $9
Book 6 | N/A | $10
Any pointers you glorious geniuses can give me would be amazing.