ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Conditional Formatting help. (https://www.excelbanter.com/excel-discussion-misc-queries/91623-conditional-formatting-help.html)

mikel301292

Conditional Formatting help.
 

Im creating a planner for my local GP which, ive got a small problem
with. Basically on it its got, the ammount of appointments each Gp has,
and above it has whether they are "in" on that day or "off". But the
Problem is that when someone is on holiday, a "h" goes into the box, i
want this then to turn the box with the ammount of appointments in to
"0".
I've tried using the basic "IF" fuction: =IF(A1="H",0), which makes
the box go to 0 when there is a h but i cant type any other number into
that cell because it will over ride the forumlae in the cell.
I then tried to type the same forumlea into the conditional
formatting section but that just does nothing.
If you have any way of solving this problem please help me. Thanks


--
mikel301292
------------------------------------------------------------------------
mikel301292's Profile: http://www.excelforum.com/member.php...o&userid=35004
View this thread: http://www.excelforum.com/showthread...hreadid=547423


EdMac

Conditional Formatting help.
 

Mike,

One way to do this is through Data validation (DATA Validation)


In the cell where you want the numbers or 0 to be go to data
validation

Select list then in the box put =IF(Cell_that_has_H="h",0,1,2,3,4,etc)

This will only allow 0 to be entered into the cell when H is selected,
make the list of numbers as long as you like/need or you could use a
named range.

Not all that pretty but it works.

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=547423


mikel301292

Conditional Formatting help.
 

Thanks for your help Ed, but The problem isnt with the manual entering
of the number, i need it to automatically change when "h" is entered
into the cell.


--
mikel301292
------------------------------------------------------------------------
mikel301292's Profile: http://www.excelforum.com/member.php...o&userid=35004
View this thread: http://www.excelforum.com/showthread...hreadid=547423


EdMac

Conditional Formatting help.
 

Mike,

In that case, I think the only solution would be using a macro - not my
strong point I'm afraid but I'm sure there are others on the site who
may be able to help you.

Ed


--
EdMac
------------------------------------------------------------------------
EdMac's Profile: http://www.excelforum.com/member.php...o&userid=30736
View this thread: http://www.excelforum.com/showthread...hreadid=547423



All times are GMT +1. The time now is 01:47 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com