morning all
Thanks to the guys that helped me yesterday with a couple of queries. I have a couple more on the same s/sheet that I am working through today.
I have a spreadsheet of running and cycle data (see attached).
1. Whenever I wish to add a new entry I insert a line at the top of the existing entries, i.e. a new Row 5, and then I manually copy the formulas from the old K5:KAA to the new line which is now K5:KAA. However I find that the SUMPRODUCT formulas I am using to calculate the columns N 'Total Weeks Run Miles' and R 'Total Cycle Miles' do not fully take account of the new line. I don't want to manually have to alter the formulas each time. I had considered whether the SUMPRODUCT formulas could refer to whole columns, so instead of using the following for example in N5:
=SUMPRODUCT(($B5:$B$246="Run")*($G5:$G$246=G5)*($H5:$H$246=H5)*($I5:$I$246))
I could use something more like this:
=SUMPRODUCT((B:B="Run")*(G:G=G5)*(H:H=H5)*(I:I)
However it didn't like that. Is there a way I can solve this?
Query 2.
I have to use a variety of columns to calculate the dates I use. Some of these seem to have been necessary, for example columns D-G, with the dates broken up per column for day of the week, date, month and year. This in itself isn't a problem, but I have to use two other columns, which I keep separate from the main data, these are in columns Z and AA. AA is used to convert the month in text, to a number. Z is used to convert the day, month and year (via CONCATENATE) to a date format that excel can then use to calculate the number of days between runs/cycles etc.
Is there a much more simple way to embed these formulas within others in the s/sheet, and therefore remove the need to have these two separate columns. I did consider having just one date entry column, say column D, which would contain day, month, year - but discarded this idea as I like to be able to autofilter by month, year etc.
Any suggestions? Sorry this is rather a long message!
Dean
Bookmarks