## Track progress

Assume total length be 10 kilometers and each cell of 100 meters.

If I update the progress from 9.01 kms to 9.08 kms in the table, how the cell gets highlighted corresponding to the entered chainages.

**Answer:**

The worksheet above shows you km in column A and highlighted cells in column B, if they are complete in the excel defined table.

You can easily add or remove values to the excel defined table without the need to adjust the conditional formatting formulas.

**Conditional formatting formula applied to cell range B1:B101:**

#### How to build an excel table

- Select cell range D3:E6
- Go to tab "Insert" on the ribbon
- Click "Table" button

Tip! You can also use shortcut key CTRL + T to create a table

Excel tables lets you easily organize, filter and format data on a worksheet.

Learn more about excel tables.

#### How to apply a conditional formatting formula to a cell range

- Select cell range B1:B101
- Go to tab "Home" on the ribbon if you are not already there
- Click on "Conditional Formatting" button to expand a menu
- Click "New Rule.."

- Click "Use a formula to determine which cells to format"
- Type above formula in dialog box formula bar
- Click "Format..." button
- Go to tab "Fill"
- Pick a fill color
- Click OK button
- Click OK button

#### Explaining conditional formatting formula

You can't use structured references in a conditional formatting formula unless you use the INDIRECT function for each reference. This applies to Data Validation Lists as well.

**Step 1 - Check if current cell value is less than the END range values in table**

(A1<INDIRECT("Table1[End]")

becomes

0<{0.8;1.3;1.6}

and returns {TRUE;TRUE;TRUE}

**Step 2 - Check if current cell value is greater than or equal to the START values in table**

A1>=INDIRECT("Table1[Start]"

becomes

0>={0.1;1.1;1.5}

and returns {FALSE;FALSE;FALSE}

**Step 3 - Multiply arrays**

(A1<INDIRECT("Table1[End]"))*(A1>=INDIRECT("Table1[Start]"))

becomes

{TRUE;TRUE;TRUE}*{FALSE;FALSE;FALSE}

and returns {0;0;0}

Multiplying boolean values creates integers.

**Step 4 - Sum array**

SUMPRODUCT((A1<INDIRECT("Table1[End]"))*(A1>=INDIRECT("Table1[Start]")))

becomes

SUMPRODUCT( {0;0;0})

and returns 0.

0 means False so cell B1 is not formatted gray.

#### Download excel *.xlsx file

Highlight dates in a date range

Question: How do I highlight dates that meet criteria using conditional formatting? Table of contents Highlight values in a column […]

This post decribes how to highlight records with closest value to a criterion. You can also choose to highlight the […]

This blog post shows you how to easily identify duplicate rows or records in a list. Conditional formatting formula: =COUNTIFS($B$3:$B$15, […]

How to highlight MAX and MIN value based on month

Conditional formatting formula to highlight max value in every month: =B2=MAX(IF(MONTH(A2)=MONTH(Date_rng), Close, "")) Conditional formatting formula to highlight min value […]

Here is how to highlight every other row using conditional formatting. Conditional formatting formula: =ISEVEN(ROW())*OR($B3:$D3<>"") Alternative CF formula: =EVEN(ROW())=ROW() This […]

### Leave a Reply

### How to comment

**How to add a formula to your comment**

<code>Insert your formula here.</code>

**Convert less than and larger than signs**

Use html character entities instead of less than and larger than signs.

< becomes < and > becomes >

**How to add VBA code to your comment**

[vb 1="vbnet" language=","]

Put your VBA code here.

[/vb]

**How to add a picture to your comment:**

Upload picture to postimage.org or imgur

Use the img tag, like this: <img src="Insert pic link here">

**Contact Oscar**

You can contact me through this contact form