Highlight coordinates / positions

leturc

New Member
Joined
Feb 21, 2010
Messages
12
Hi everybody,
I hope this message finds you well. I
In my current project, I am working with a main table in Excel that represents fabric measurements. Specifically, the A column denotes the length, ranging from 1 to 100 meters (each row representing 1 meter), while the first row indicates the width, spanning from 0 to 150 cm (with 5 columns of 30 cm each).
Additionally, I maintain a separate defect table within the same Excel file. This defect table contains information about various defects found in the fabric, including the defect name, the meter at which it is present, and its position from the left selvage.
I need to highlight corresponding cell in the main table (surely between the range) based on the defect information stored in the defect table.
Could you kindly provide guidance or assistance on how to achieve this in Excel? Any insights or recommendations would be greatly appreciated.
Thank you for your time and support.
 

Attachments

  • Screenshot_2.png
    Screenshot_2.png
    14 KB · Views: 22

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Use the following conditional formatting.

Create a new rule in conditional formatting and add the formula at the bottom of the example.

Before you must add a larger number to your measurements, in cell H3 I added 200 and in cell A52 I added 100. This is for the purposes of the formula. You must do it in the cells of your sheet.

Unfortunately, the rows and columns of your sheet are not visible in your image, so you will have to adapt the formula and the range to where you want it to work.
varios 21mar2024.xlsm
ABCDEFGHIJK
188m120cm
2
30.024.048.072.096.0120.0200.0Position LPosition WDefect
40.00.5110
51.812K
65.3244T
77.01180H
88.8
910.6
1012.3
1114.1
4980.6
5082.3
5186.2
52100.0
Hoja1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:G52Expression=SUMPRODUCT((B$3<=$J$4:$J$7)*(C$3>$J$4:$J$7)*($A4<=$I$4:$I$7)*($A5>$I$4:$I$7))textNO


😇
 
Upvote 0
Use the following conditional formatting.

Create a new rule in conditional formatting and add the formula at the bottom of the example.

Before you must add a larger number to your measurements, in cell H3 I added 200 and in cell A52 I added 100. This is for the purposes of the formula. You must do it in the cells of your sheet.

Unfortunately, the rows and columns of your sheet are not visible in your image, so you will have to adapt the formula and the range to where you want it to work.
varios 21mar2024.xlsm
ABCDEFGHIJK
188m120cm
2
30.024.048.072.096.0120.0200.0Position LPosition WDefect
40.00.5110
51.812K
65.3244T
77.01180H
88.8
910.6
1012.3
1114.1
4980.6
5082.3
5186.2
52100.0
Hoja1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B4:G52Expression=SUMPRODUCT((B$3<=$J$4:$J$7)*(C$3>$J$4:$J$7)*($A4<=$I$4:$I$7)*($A5>$I$4:$I$7))textNO


😇
Dear DanteAmor,

Thnak you very vey much. It is working perfectly.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,175
Members
452,615
Latest member
bogeys2birdies

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