We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Excel help with drag down?

retiredalso
Posts: 79 Forumite
in Techie Stuff
I have an excel spreadsheet to calculate my gas and electricity consumption and costs.
I enter the date in column A and the meter reading in column B.
Columns C, D, E, F and G show me how much I have used, the daily average and the cost, along with some other workings to make it work.
If I enter the date and meter reading in cell A12 and cell B12 I have to then highlight cells C11, D11, E11, F11 and G11 and drag down to get the new values in cells C12, D12 etc.
Is there a way to automate this so that when I enter the data in columns A and B and press enter the cells in columns C - G are automatically filled in?
Excel 2003 but may be getting excel 2010
I enter the date in column A and the meter reading in column B.
Columns C, D, E, F and G show me how much I have used, the daily average and the cost, along with some other workings to make it work.
If I enter the date and meter reading in cell A12 and cell B12 I have to then highlight cells C11, D11, E11, F11 and G11 and drag down to get the new values in cells C12, D12 etc.
Is there a way to automate this so that when I enter the data in columns A and B and press enter the cells in columns C - G are automatically filled in?
Excel 2003 but may be getting excel 2010
0
Comments
-
Hmmm...not sure if it can be automated and you're already dragging and copying the functions in the cells anyway - you know you can drag them down further? You don't have to do just one row at a time - sorry if you know that!!
Once done, save it as a template for the next year - then all you need to do is add in A and B cell data.'Proud To Be Dealing With My Debts' : Member number 632
Nerds rule! :cool:0 -
You could probably add some VB code into the worksheet so that on entering values into a column it checks if others are empty, and fill them if necessary, but too advanced for me to give you the exact code to sort it.matched betting: £879.63
0 -
You could use a conditional formula - the versatile "if"
For example to get how much used in C2 use the following format
=if(B2="","",B2-B1) which checks if a value is in B2, if not then nothing(null). If you have a value there then it puts in the value of B2-B1.
Use a similar formula for the rest of columns using B2 as the check cell then copy the whole lot down as far as you fancy.
Bit more about conditional IF here
http://spreadsheets.about.com/od/iffunctions/Excel_IF_Functions.htm"It's nice to be important but more important to be nice"
John Templeton 1912-20080 -
Conditional "if" is probably the best way. I believe though there is an option that does this automatically in Excel 2007/2010, I have a spreadsheet I use for a similar purpose which fills automatically, I didn't select any option to do this - it just does, so the functionality exists somewhere in 2007/2010, never bothered looking into it as it didn't bother me to drag down if required.0
-
Excel 2007/2010: It's called 'Extend data range formats and formulas' and it's enabled by default.
Conditional if is the best way to do it if you want to avoid unsightly zeros everywhere0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.7K Banking & Borrowing
- 253.4K Reduce Debt & Boost Income
- 454K Spending & Discounts
- 244.7K Work, Benefits & Business
- 600.1K Mortgages, Homes & Bills
- 177.3K Life & Family
- 258.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.2K Discuss & Feedback
- 37.6K Read-Only Boards