LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Glen
 
Posts: n/a
Default help with formula

I am trying to set up a worksheet so I can work out how long medication
reduction will take. I need to input a number (the starting dose) and then
input a second number (reduction amount) to reduce the first number by. As
medication is taken twice daily the results need to be spread over two
columns for morning and afternoon.

So far I have days starting in column A8, morning dose in column B8 and
afternoon dose in column C8. I have the starting dose in C4 and reduction
amount in C6. I took an arbitrary value of 100 to start and used =C4/2 as
the first value in column B8 and =C4-B8 as the first value in column C8. I
then used =(C4/2)-C6 to get the next days figure (the starting dose less the
reduction amount). I just referenced previous cells to get remaining days
value. I realise there is probably a much more elegant way to do this
worksheet but I am only a beginner. So far my worksheet looks a bit like
this only it goes down around 110 columns.

Start Total 100
Daily Reduction 2

A B C
8 Day1 50 50
9 Day2 48 50
10 Day3 48 48
11 Day4 46 48

Daily Total 2600 2700

Total 5300

The problem I have is when I input a starting value less than 100 I now get
negative numbers and they are subtracted from the total amount. How do I get
a formula to ignore negative values or better still just return 0 for any
negative numbers. I have sub totalled both morning and afternoon columns and
then added both sub totals to get an over all amount. I thought an if
logical test on the sub totals would be workable but I don't know how to get
the formula to test multiple cells down a column, and/or how do I get each
days figure to ignore negative values. Any ideas?

Glen



 
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 / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
revert formula insertion to old method Don't be a pain in the ass Setting up and Configuration of Excel 0 January 24th 05 01:49 PM
Relative Indirect Formula Referencing? Damian Excel Worksheet Functions 1 January 7th 05 04:16 AM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM
Cell doesn't show formula result - it shows formula (CTRL + ' doe. o0o0o0o Excel Worksheet Functions 6 November 19th 04 03:13 PM


All times are GMT +1. The time now is 10:11 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"