Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Danny
 
Posts: n/a
Default Conditional Formating

I have cells in a worksheet that brings in numbers (linked to the cell)from
other sheets in the work book. The values being brought in a simple numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the nearest
whole number that are linked back to cells in the supporting work sheet.

However, the problem appears to be that conditonal formating is looking at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that has a
value between 3 & 3.99. The table shows side by side cells that both contain
the number 3. However one cell is red and the other is not. If you go back
to the cell of origin for each, it will show that the unrounded value for one
cell may be 2.8, and 3.5 for the other. The condition is applied based on
the decimal points, even though the origin cells are fomatted with no decimal
places.

Thanks in advance,

Danny
  #2   Report Post  
JulieD
 
Posts: n/a
Default

Hi Danny

numbers formatted to hide the decimal places aren't actually rounded they
just look that way
try this
type in A1
57.6
and format it to show no decimal places now in B1 type
=A1*100
you will see that the original number is multiplied by 100 not the formatted
number

to round a number use the round function
=ROUND(A1,0)

unfortunately, i can't think of an easy way to solve your problem unless you
use tools / options / calculation, precision as displayed ... however, the
following warning is given in HELP
--
Caution When you change the precision of the calculations in a workbook by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose to
calculate with full precision, the original underlying values cannot be
restored.
---
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Danny" wrote in message
...
I have cells in a worksheet that brings in numbers (linked to the cell)from
other sheets in the work book. The values being brought in a simple
numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the nearest
whole number that are linked back to cells in the supporting work sheet.

However, the problem appears to be that conditonal formating is looking at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that has
a
value between 3 & 3.99. The table shows side by side cells that both
contain
the number 3. However one cell is red and the other is not. If you go
back
to the cell of origin for each, it will show that the unrounded value for
one
cell may be 2.8, and 3.5 for the other. The condition is applied based on
the decimal points, even though the origin cells are fomatted with no
decimal
places.

Thanks in advance,

Danny



  #3   Report Post  
Danny
 
Posts: n/a
Default

Thanks and right oh! The cell values is format as desired, i.e. whole
numbers only, but the conditinal format goes back to the "behind the scenes"
cell value, even though the refeenced cell in the link is also formatted to a
whole number. Will give your suggestion a try and let you know.

"JulieD" wrote:

Hi Danny

numbers formatted to hide the decimal places aren't actually rounded they
just look that way
try this
type in A1
57.6
and format it to show no decimal places now in B1 type
=A1*100
you will see that the original number is multiplied by 100 not the formatted
number

to round a number use the round function
=ROUND(A1,0)

unfortunately, i can't think of an easy way to solve your problem unless you
use tools / options / calculation, precision as displayed ... however, the
following warning is given in HELP
--
Caution When you change the precision of the calculations in a workbook by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose to
calculate with full precision, the original underlying values cannot be
restored.
---
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Danny" wrote in message
...
I have cells in a worksheet that brings in numbers (linked to the cell)from
other sheets in the work book. The values being brought in a simple
numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the nearest
whole number that are linked back to cells in the supporting work sheet.

However, the problem appears to be that conditonal formating is looking at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that has
a
value between 3 & 3.99. The table shows side by side cells that both
contain
the number 3. However one cell is red and the other is not. If you go
back
to the cell of origin for each, it will show that the unrounded value for
one
cell may be 2.8, and 3.5 for the other. The condition is applied based on
the decimal points, even though the origin cells are fomatted with no
decimal
places.

Thanks in advance,

Danny




  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

Could you not use a CF formula of say

=AND(ROUND(A1,0)=3,ROUND(A1,0)<4)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JulieD" wrote in message
...
Hi Danny

numbers formatted to hide the decimal places aren't actually rounded they
just look that way
try this
type in A1
57.6
and format it to show no decimal places now in B1 type
=A1*100
you will see that the original number is multiplied by 100 not the

formatted
number

to round a number use the round function
=ROUND(A1,0)

unfortunately, i can't think of an easy way to solve your problem unless

you
use tools / options / calculation, precision as displayed ... however, the
following warning is given in HELP
--
Caution When you change the precision of the calculations in a workbook

by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose to
calculate with full precision, the original underlying values cannot be
restored.
---
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
...well i'm working on it anyway
"Danny" wrote in message
...
I have cells in a worksheet that brings in numbers (linked to the

cell)from
other sheets in the work book. The values being brought in a simple
numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the nearest
whole number that are linked back to cells in the supporting work sheet.

However, the problem appears to be that conditonal formating is looking

at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that

has
a
value between 3 & 3.99. The table shows side by side cells that both
contain
the number 3. However one cell is red and the other is not. If you go
back
to the cell of origin for each, it will show that the unrounded value

for
one
cell may be 2.8, and 3.5 for the other. The condition is applied based

on
the decimal points, even though the origin cells are fomatted with no
decimal
places.

Thanks in advance,

Danny





  #5   Report Post  
Danny
 
Posts: n/a
Default

Julie D.

tried your suggestion & it worked just fine! Am simply averaging some basic
scoring with rates from 1 to 5 so did not have to worry about losing
precision and the values were not further linked or utilizied so no worry
about downstream precision or accuracy. Used conditional format to color a
cell with green, yellow or red based on the score in order to highlight areas
that need improvements.

Bob - thanks for the idea, but a cf does not fit into the end result I
needed and there are more than the two conditons of T or F.

"Bob Phillips" wrote:

Could you not use a CF formula of say

=AND(ROUND(A1,0)=3,ROUND(A1,0)<4)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JulieD" wrote in message
...
Hi Danny

numbers formatted to hide the decimal places aren't actually rounded they
just look that way
try this
type in A1
57.6
and format it to show no decimal places now in B1 type
=A1*100
you will see that the original number is multiplied by 100 not the

formatted
number

to round a number use the round function
=ROUND(A1,0)

unfortunately, i can't think of an easy way to solve your problem unless

you
use tools / options / calculation, precision as displayed ... however, the
following warning is given in HELP
--
Caution When you change the precision of the calculations in a workbook

by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose to
calculate with full precision, the original underlying values cannot be
restored.
---
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
...well i'm working on it anyway
"Danny" wrote in message
...
I have cells in a worksheet that brings in numbers (linked to the

cell)from
other sheets in the work book. The values being brought in a simple
numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the nearest
whole number that are linked back to cells in the supporting work sheet.

However, the problem appears to be that conditonal formating is looking

at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that

has
a
value between 3 & 3.99. The table shows side by side cells that both
contain
the number 3. However one cell is red and the other is not. If you go
back
to the cell of origin for each, it will show that the unrounded value

for
one
cell may be 2.8, and 3.5 for the other. The condition is applied based

on
the decimal points, even though the origin cells are fomatted with no
decimal
places.

Thanks in advance,

Danny








  #6   Report Post  
JulieD
 
Posts: n/a
Default

Hi Danny

glad to hear its solved and thanks for the feedback.

--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
....well i'm working on it anyway
"Danny" wrote in message
...
Julie D.

tried your suggestion & it worked just fine! Am simply averaging some
basic
scoring with rates from 1 to 5 so did not have to worry about losing
precision and the values were not further linked or utilizied so no worry
about downstream precision or accuracy. Used conditional format to color
a
cell with green, yellow or red based on the score in order to highlight
areas
that need improvements.

Bob - thanks for the idea, but a cf does not fit into the end result I
needed and there are more than the two conditons of T or F.

"Bob Phillips" wrote:

Could you not use a CF formula of say

=AND(ROUND(A1,0)=3,ROUND(A1,0)<4)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"JulieD" wrote in message
...
Hi Danny

numbers formatted to hide the decimal places aren't actually rounded
they
just look that way
try this
type in A1
57.6
and format it to show no decimal places now in B1 type
=A1*100
you will see that the original number is multiplied by 100 not the

formatted
number

to round a number use the round function
=ROUND(A1,0)

unfortunately, i can't think of an easy way to solve your problem
unless

you
use tools / options / calculation, precision as displayed ... however,
the
following warning is given in HELP
--
Caution When you change the precision of the calculations in a
workbook

by
using the displayed (formatted) values, Excel permanently changes any
constant values on the worksheets in the workbook. If you later choose
to
calculate with full precision, the original underlying values cannot be
restored.
---
--
Cheers
JulieD
check out www.hcts.net.au/tipsandtricks.htm
...well i'm working on it anyway
"Danny" wrote in message
...
I have cells in a worksheet that brings in numbers (linked to the

cell)from
other sheets in the work book. The values being brought in a simple
numbers,
averaged from a small set of other numbers.

All number formats are set to number, 0 decimal points.

The roll up table is showing the correct, rounded values to the
nearest
whole number that are linked back to cells in the supporting work
sheet.

However, the problem appears to be that conditonal formating is
looking

at
the worsheet values and applying the format to the un rounded values.

For example, if I tell the roll up table to format red each cell that

has
a
value between 3 & 3.99. The table shows side by side cells that both
contain
the number 3. However one cell is red and the other is not. If you
go
back
to the cell of origin for each, it will show that the unrounded value

for
one
cell may be 2.8, and 3.5 for the other. The condition is applied
based

on
the decimal points, even though the origin cells are fomatted with no
decimal
places.

Thanks in advance,

Danny







  #7   Report Post  
bhofsetz
 
Posts: n/a
Default


Danny,
It looks like the rounding solution worked, but if you are
concerned about rounding for downstream calculations why not set up
your conditional fortting based on the unrounded results.

ie.
if your value is between 2.51 and 3.50 it will round to 3 and you want
it red
if your value is between 3.51 and 4.50 it will round to 4 and you want
it yellow
if your value is above 4.51 it will round to 5 and you want it green.

So set up your conditions accordingly.
Rather than value = 3 turns red
have value between 2.51 and 3.50 turns red

etc.

Just a thought.


--
bhofsetz
------------------------------------------------------------------------
bhofsetz's Profile: http://www.excelforum.com/member.php...o&userid=18807
View this thread: http://www.excelforum.com/showthread...hreadid=366718

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Formating Itch Excel Discussion (Misc queries) 1 March 8th 05 06:13 PM
Help using Conditional Formating of Entire Rows [email protected] Excel Worksheet Functions 4 February 16th 05 04:29 PM
more than 3 conditional formating in excel Manan Excel Discussion (Misc queries) 2 February 7th 05 09:12 PM
Conditional Formating when result is text Lary Excel Worksheet Functions 1 December 16th 04 02:13 AM
30 Day Aging Report Using Conditional Formating Tiegris Excel Worksheet Functions 0 November 4th 04 10:07 PM


All times are GMT +1. The time now is 07:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"