Conditional Formatting Issue

Harvey12

Board Regular
Joined
Feb 23, 2015
Messages
130
Hi All,

I am currently setting up a file for my new department I have just joined. They are looking to make their excel documents more automated to save time.

One of my current tasks is to change cell colours depending on what is contained within the cell. I can easily conditionally format the cell to change colour depending on what is written the difficulty that I am struggling with is that I need that to change the colour of all of the cells in that row to the left of that cell.

For Example:

Cell K3 is the first cell containing the 'Status' of the information to the left of it. When someone types in the word 'Done' I need all the cells in row 3 to the left of K3 to highlight green!!

Can someone please assist.

Many thanks
Harvey
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Hi,

Select A3:J3 then

Home tab | conditional formatting | new rule | use a formula to decide which cells to format and enter this formula


=$K3="Done"

Click the format button | fill tab and choose green and OK out. You can paint this doen with the format painter.
 
Upvote 0
Hi Mike,

Many thanks for that assistance it is much appreciated.

As well as this, do you know of anyways of making what the type into that end / 'Status' column restricted, for example a drop down perhaps, with only a few things to choose between?

Many thanks
Harvey
 
Upvote 0
Hi,

Yes we can do that. Put the items you want to be entered in a column of cells (say) Q1:Q4 then select k3 and

Data tab | data validation | data validation | In the 'Allow' dropdown select 'List' and then click the icon on the right of the 'Source' box and select your list of allowable inputs on the worksheet. Click the icon again and OK out.

Tip. I always colour the data validation dropdown cells so you know where thry are because when you're not in the cell the dropdown arrow doesn't display.
 
Upvote 0
Hi Mike,

Once again many thanks for your help the file is exactly how they and I now want it! Much appreciated.

In addition to this I am now looking at a sub worksheet. All I am looking to do is get a cell to equal the contents of another cell.

In cell C4 I have a part number eg: 12345-2 (The "-2" is the issue number, which is variable)

I am looking to create a formula in cell A20, which will say equal 12345 (what I mean by this is get the cell to pull the part number removing the issue number)

Is that possible?

Many thanks
Harvey
 
Upvote 0
Hi,

It will work with or without the --

Without the -- the number returned will be a text value and the -- coerces it into a number.
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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