Forum Discussion

LynnDwight's avatar
LynnDwight
Copper Contributor
Aug 02, 2023

Formulas and Functions

I'm setting up a weight loss chart showing gain/loss each week. my question is how do i write the formula to take into account weather the last recorded weight is empty  Also how to setup the formula to take into account how some months have four weeks and others have 5.

JANUARYAPRIL
DateWeight+/-DateWeight+/-
4188.00 5 0.00
11187.001.0012 0.00
18185.002.0019 0.00
251840.0026 0.00
  #####  0.00
FEBRUARYMAY
1181.003.003 =B20-B210.00
8absent#####10 above is the current formula0.00
15180.00#####17 0.00
22179.001.0024 0.00
  #####31 0.00
MARCHJUNE
1

 178

#####7 0.00
8

 177

0.0014 0.00
15 0.0021 0.00
22 0.0028 0.00
29 0.00  0.00

1 Reply

  • mtarler's avatar
    mtarler
    Silver Contributor
    I suspect in some cases you are getting an error so you can use IFERROR(.... ,"") to hide that error.
    That said I think you would be best served to reorganize your sheet to only have
    date, weight, difference
    and get rid of the month headers/separators and not have the year broken into multiple sets of columns
    If you want to see the month you can easily change the date format to show Month day, year (or day Month year if you prefer) or you can add another column to specifically just show the month.
    but then your data will be continuous (except for that 'absent') and you will be able to do more with it and easier like make a graph or filter.