A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

conditional formatting



 
 
Thread Tools Display Modes
  #1  
Old August 4th, 2008, 05:47 PM posted to microsoft.public.excel.worksheet.functions
dkstech
external usenet poster
 
Posts: 4
Default conditional formatting

I've read most of the similar topic posts but still haven't quite figured out
what to do. I used to teach computer science so I know conditionals, I just
don't know how to put it in Excel ( we're using 2007). What I have is a
workbook set up for time keeping. If someone enters a P in any cell I need
it to Add 1 to the AL column of that row, but if they enter a lower case p it
needs to add only 0.5 to the AL column of the row. For the same cell, if the
value entered was X or x, the AK column of the row is updated by those same
values. Thanks for any responses!
  #2  
Old August 4th, 2008, 06:02 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default conditional formatting

If someone enters a P in any cell

Well, you need to narrow it down from "any cell". An Excel 2007 worksheet
has billions of cells!

Try something like this:

For "P" :

=SUMPRODUCT(--(EXACT(A11,"P")))

For "p" :

=SUMPRODUCT(--(EXACT(A11,"p")))/2

Follow the same logic for X and x.

--
Biff
Microsoft Excel MVP


"dkstech" wrote in message
...
I've read most of the similar topic posts but still haven't quite figured
out
what to do. I used to teach computer science so I know conditionals, I
just
don't know how to put it in Excel ( we're using 2007). What I have is a
workbook set up for time keeping. If someone enters a P in any cell I
need
it to Add 1 to the AL column of that row, but if they enter a lower case p
it
needs to add only 0.5 to the AL column of the row. For the same cell, if
the
value entered was X or x, the AK column of the row is updated by those
same
values. Thanks for any responses!



  #3  
Old August 4th, 2008, 10:17 PM posted to microsoft.public.excel.worksheet.functions
dkstech
external usenet poster
 
Posts: 4
Default conditional formatting


Thank you. The reason I said "any cell" is that there are 242 possible
working days in our year, plus we can work on weekends sometimes as well - so
the range of cells that are used are actually in a matrix, not an array and
therefore didn't know how to really say that before.

Thank you for your reply - I'll give that a shot.

"T. Valko" wrote:

If someone enters a P in any cell


Well, you need to narrow it down from "any cell". An Excel 2007 worksheet
has billions of cells!

Try something like this:

For "P" :

=SUMPRODUCT(--(EXACT(A11,"P")))

For "p" :

=SUMPRODUCT(--(EXACT(A11,"p")))/2

Follow the same logic for X and x.

--
Biff
Microsoft Excel MVP


"dkstech" wrote in message
...
I've read most of the similar topic posts but still haven't quite figured
out
what to do. I used to teach computer science so I know conditionals, I
just
don't know how to put it in Excel ( we're using 2007). What I have is a
workbook set up for time keeping. If someone enters a P in any cell I
need
it to Add 1 to the AL column of that row, but if they enter a lower case p
it
needs to add only 0.5 to the AL column of the row. For the same cell, if
the
value entered was X or x, the AK column of the row is updated by those
same
values. Thanks for any responses!




  #4  
Old August 4th, 2008, 10:55 PM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default conditional formatting

OK, it'll work on a matrix just as well:

=SUMPRODUCT(--(EXACT(A15,"P")))

=SUMPRODUCT(--(EXACT(A15,"p")))/2

--
Biff
Microsoft Excel MVP


"dkstech" wrote in message
...

Thank you. The reason I said "any cell" is that there are 242 possible
working days in our year, plus we can work on weekends sometimes as well -
so
the range of cells that are used are actually in a matrix, not an array
and
therefore didn't know how to really say that before.

Thank you for your reply - I'll give that a shot.

"T. Valko" wrote:

If someone enters a P in any cell


Well, you need to narrow it down from "any cell". An Excel 2007 worksheet
has billions of cells!

Try something like this:

For "P" :

=SUMPRODUCT(--(EXACT(A11,"P")))

For "p" :

=SUMPRODUCT(--(EXACT(A11,"p")))/2

Follow the same logic for X and x.

--
Biff
Microsoft Excel MVP


"dkstech" wrote in message
...
I've read most of the similar topic posts but still haven't quite
figured
out
what to do. I used to teach computer science so I know conditionals, I
just
don't know how to put it in Excel ( we're using 2007). What I have is
a
workbook set up for time keeping. If someone enters a P in any cell I
need
it to Add 1 to the AL column of that row, but if they enter a lower
case p
it
needs to add only 0.5 to the AL column of the row. For the same cell,
if
the
value entered was X or x, the AK column of the row is updated by those
same
values. Thanks for any responses!






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:50 PM.


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