Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 27
Default need to ammend a formula

Hello all,

I have this formula in cell J308. It works great.
=$J297+3.08-SUM(COUNTIF($B308:$H308,"PTO")*8)

It takes the number from J297 adds 3.08 to it and comes up with a new total,
then it counts the number of times the letters "PTO" appears in cells
B308:H308 and subtracts 8 from the result every time PTO appears. If it finds
nothing, then it simply adds 3.08 to the old total and all is well.

My problem is that I want it to do that same calculation when it finds the
letters "SICK" or "PTO".
How can I add "SICK" to my original formula and still make it work the same?

Everytime i have tried to change it original formula, it wacks it out and I
get various problems instead of my new result.

Thanks for looking at this for me.

Rob
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 266
Default need to ammend a formula

"Robb27" skrev i en meddelelse
...
Hello all,

I have this formula in cell J308. It works great.
=$J297+3.08-SUM(COUNTIF($B308:$H308,"PTO")*8)

It takes the number from J297 adds 3.08 to it and comes up with a new
total,
then it counts the number of times the letters "PTO" appears in cells
B308:H308 and subtracts 8 from the result every time PTO appears. If it
finds
nothing, then it simply adds 3.08 to the old total and all is well.

My problem is that I want it to do that same calculation when it finds the
letters "SICK" or "PTO".
How can I add "SICK" to my original formula and still make it work the
same?

Everytime i have tried to change it original formula, it wacks it out and
I
get various problems instead of my new result.

Thanks for looking at this for me.

Rob


Hello Rob

One way:

=$J297+3.08-SUM(COUNTIF($B308:$H308,{"PTO","SICK"})*8)

--
Best regards
Leo Heuser

Followup to newsgroup only please.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default need to ammend a formula

Hi!

Try this:

=$J297+3.08-SUM(COUNTIF($B308:$H308,{"PTO","Sick"}))*8

BTW, you didn't need the SUM function before, but now you do!

Biff

"Robb27" wrote in message
...
Hello all,

I have this formula in cell J308. It works great.
=$J297+3.08-SUM(COUNTIF($B308:$H308,"PTO")*8)

It takes the number from J297 adds 3.08 to it and comes up with a new
total,
then it counts the number of times the letters "PTO" appears in cells
B308:H308 and subtracts 8 from the result every time PTO appears. If it
finds
nothing, then it simply adds 3.08 to the old total and all is well.

My problem is that I want it to do that same calculation when it finds the
letters "SICK" or "PTO".
How can I add "SICK" to my original formula and still make it work the
same?

Everytime i have tried to change it original formula, it wacks it out and
I
get various problems instead of my new result.

Thanks for looking at this for me.

Rob



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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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

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

About Us

"It's about Microsoft Excel"