Help with comparing cell values

Norm Shea

New Member
Joined
Jul 31, 2007
Messages
19
Office Version
  1. 365
Platform
  1. Windows
I'd like some help automating the verification of selected cells. I have a spreadsheet where I'm comparing the dominant component for two samples. In the attached image, Column G is =MAX(C:E) and Column M is, similarly =MAX(I:K). In this example, it is easy to visually verify that the values for Rows 2 and 3 are Columns C and I. But, for a spreadsheet with many more rows, it becomes more difficult, so I'd like to automate it.

Is it possible to create an IF/THEN formula or VBA that would provide a TRUE/FALSE value in Column N. So, if C and I were the selected cells it would be TRUE but it C and either J or K were selected it would be FALSE. In the image, the values in Column N are just typed in, as an example.

Capture.PNG
 
Last edited:

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
How about
Excel Formula:
=AND(C2=MAX(C2:E2),I2=MAX(I2:K2))
 
Upvote 0
Solution
How about
Excel Formula:
=AND(C2=MAX(C2:E2),I2=MAX(I2:K2))
Yep, I was definitely overthinking it. Here's what it ended up looking like for me, =IF(AND(C2=MAX(C2:E2),I2=MAX(I2:K2)),TRUE,FALSE). Thanks, Fluff!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,530
Messages
6,125,347
Members
449,220
Latest member
Edwin_SVRZ

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top