Conditional formatting

iddi25

New Member
Joined
Aug 4, 2015
Messages
7
Hi There,

A couple of questions.

1) I have created a rule for conditional formatting and wish to copy this to other cells. I have used the Format Painter but does not do what I need it to do.
Rule 1) If Cell Value is greater than N2 highlight Green.
Rule 2) If cell Range is between L2 & M2 Highlight Red

I want to create the same rule but in row 3 I want it to look at L3, M3 & N3 not N.

How can I do this for all rows without manually doing each 1?

2) I have a custom Cell [h]:mm;@. I want to convert this in to standard text / numbers.
For example the numbers in the custom Cell are 168:43, i want this to be displayed in another cell as 168.43. Or 149:23 to 149.23.
I was hoping to use a simple formula like =F2 (where the customer cell is) and it would just convert it.
 

Attachments

  • Capture.JPG
    Capture.JPG
    205 KB · Views: 8

Some videos you may like

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,683
Office Version
  1. 365
Platform
  1. Windows
Regarding Conditional Formatting, I have always had some trouble trying to use the Format Painter to copy Conditional Formatting rules.
I have found the better way to do it is to first select the whole section you want to apply it to, then write the Conditional Formatting as it applies to the first cell in your selection.
If you have written the formula using the correct mixtures or locked, fixed, mixed cell references, the formula will automatically adjust for all the other rows.

See here for information on the cell references: Absolute, Relative, and Mixed Cell References in Excel
In your case, it does not sound you will need to lock any cells.
 
Solution

iddi25

New Member
Joined
Aug 4, 2015
Messages
7
@Joe4 Thank you very much, this explains a lot and fixed the issue.

Any ideas with the 2nd question?

2) I have a custom Cell [h]:mm;@. I want to convert this in to standard text / numbers.
For example the numbers in the custom Cell are 168:43, i want this to be displayed in another cell as 168.43. Or 149:23 to 149.23.
I was hoping to use a simple formula like =F2 (where the customer cell is) and it would just convert it.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,683
Office Version
  1. 365
Platform
  1. Windows
2) I have a custom Cell [h]:mm;@. I want to convert this in to standard text / numbers.
For example the numbers in the custom Cell are 168:43, i want this to be displayed in another cell as 168.43. Or 149:23 to 149.23.
I was hoping to use a simple formula like =F2 (where the customer cell is) and it would just convert it.
How about just formatting like:
[h].mm;@
 

Saba Sabaratnam

Board Regular
Joined
May 26, 2018
Messages
196

ADVERTISEMENT

or you could multiply F2 by 24 and format the cell General or number.

Kind regards

Saba
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
56,683
Office Version
  1. 365
Platform
  1. Windows
You are welcome.

Which solution works best for you depends on whether you are just trying to change how the value is shown, or whether you want to actually convert it to a decimal value.

Also, for future reference, when you have two distinctly different questions like this, it is typically best to post them to separate threads. That way, if one is answered but the other isn't, the other one still shows up as an unanswered question. Also, if people know the answer to one, but not the other, they might be inclined not to answer at all (if they don't know the answer to both). So you will typically increase your chances of getting timely answers by posting different questions to different threads instead of lumping them to together in one.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,127,748
Messages
5,626,633
Members
416,195
Latest member
tonmcg

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