Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Michelle,
I've tried emailing you several times, but it keeps bouncing back - here's the gist of my reply: From the description you supplied, I presume you are looking for a formula which will compare weight loss or gain on a week-by-week basis rather than comparing with the initial weight. I have assumed that if the previous week's weight was missing, then you would want to compare with the weight from the week before that (and so on until you find a weight). If this is the case, then the following formula should be entered or copied into cell D74: =IF(D6="","",IF(D6="---",-20,IF(Lookup(999,$C6:C6)D6,(Lookup(999,$C6:C6)-D6)*5,IF(Lookup(999,$C6:C6)<D6,(Lookup(999,$C6:C6)-D6)*10,0)))) This is all one formula, with no spaces. You might like to format the cell to suit your requirements. This cell can be copied into the range E74 to T74, and will give blanks rather than zeros if there is no entry in the appropriate cell on row 6. The second C6 in the expression $C6:C6 will change to D6, E6, F6 etc as you copy across the sheet. The Lookup part of the formula will find the last numeric value in the range (as suggested by Don above), and will ignore any "---" entries. The cells from D74 to T74 can then be copied down to as many rows as you have people. Hope this helps. Pete |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
I want to copy a formula n Excel but skip any blank cells | Excel Worksheet Functions | |||
How to skip cells with text strings. | Excel Discussion (Misc queries) | |||
How do I skip blank cells when copying over a range of cells? | Excel Discussion (Misc queries) | |||
Convert data type of cells to Text,Number,Date and Time | Excel Worksheet Functions | |||
Skipping Blank Or Null Cells In a Lookup Function | Excel Worksheet Functions |