Extrapolating Conditional Formatting

Dan Wilson

Active Member
Joined
Feb 5, 2006
Messages
466
Office Version
  1. 365
Platform
  1. Windows
Good day. I am using Excel 2002 on Win XP Pro. I have a workbook that audits the sales of sponsor flags for a golf tournament. There are currently 164 rows of data in the workbook. Column L contains the sponsor name and Column M contains a blank if the sponsorship is not yet paid and an "X" if it is paid. The user wants to be able to see at a glance which sponsors are still unpaid. Obviously, the answer is to view Column M. The user wants me to make the sponsor name (Column L)come up in a Pattern of yellow if unpaid to make it easier to find.

I have created the Conditional Formatting using Formula Is and all is well.

Is there a way to extrapolate the conditional formatting from one row to the next and have the formula automatically adjusted to look at Column M in that row? Otherwise, I will have to insert the conditional formatting into all of the rows at once and then edit the conditional format in each row to point to that row.

Thanks for any help.
Dan...
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
You can achieve this in one step.

Select column L

Use this formula in conditional formatting

=(L1<>"")*(M1="")

select yellow formatting

The formula will automatically adjust for each row
 
Upvote 0

Dan Wilson

Active Member
Joined
Feb 5, 2006
Messages
466
Office Version
  1. 365
Platform
  1. Windows
Reply to Barry

Good day Barry,

Wow! I don't understand how it works, what it is doing or why, but it works! Thank you.

Dan...
 
Upvote 0

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,961
Office Version
  1. 365
Platform
  1. Windows
Numerically speaking, 0 evaluates as FALSE and non-zero evaluates as TRUE.
Doing math with a logical (Boolean) expression on the spreadsheet coerces TRUE to 1 and FALSE to 0.

If both conditions are true, this would evaluate as 1*1=1 or TRUE
if either condition is false, this would evalute to 1*0=0, 0*1=0 or 0*0=0 or FALSE

Conditional formatting formats when the expression evaluates to TRUE which 1 does.
 
Upvote 0

Dan Wilson

Active Member
Joined
Feb 5, 2006
Messages
466
Office Version
  1. 365
Platform
  1. Windows
Reply to HotPepper

Good day Hotpepper. Thanks for the response. After I thought about it for a while, I see what is happening. What a simple process! I will remember this in the future.
Thanks again for taking the time to respond.
Dan...
 
Upvote 0

Forum statistics

Threads
1,190,677
Messages
5,982,216
Members
439,769
Latest member
trungminh2802

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
Top