Forum Discussion
Auto Adding
- Sep 12, 2022
oh my god that was so quick, thank you so much, i have no idea how you did that but it was exactly what i was looking for can I push my luck with one (ish) last question
how would i add more coloums to B
say columns C and D were January and columns E and F were February how do i add that to columns B as well
i tried this but didn't work
($C$2:$C$100;A2;$D$2:$D$100)+($E$2:$E$100;A2;$F$2:$F$100)
Cheers for the help
dave
- mathetesSep 12, 2022Gold Contributor
You don't keep adding columns for different months. Instead create a single table, as you'll see I've done in this revised attachment, and you'll be able to add rows indefinitely, new names, new months, varied quantities.
And you switch to a Pivot Table to summarize it. Or at least, if I'm correctly hypothesizing where you're going with this. The Pivot Table is a very powerful and very popular tool that's been around for decades in the spreadsheet world. It's ideal for summarizing the kind of data you're starting to describe.
Create a single table, as I've done; you'll be able to add rows indefinitely, and Pivot Table will keep up with those additions (just need to use the "Refresh Data" capability which you've find on the Data Toolbar as well as in the Data menu (across the top).
If I misunderstood the direction you are going in, please come back and correct my understanding.
- appletonthecatSep 12, 2022Copper ContributorHey,
You are clearly an expert, and my level is not great I am a little lost with the last info you sent me but am very grateful
Is there a way to use the sheet I have started
I have attached the sheet I am working on to help with the idea
Column A is the list of shops
Starting at column O11 with Q11
Column s11 with u11
Column x11 with z11
Then columns Q U Z add to column B
Then I can use the same formula for the other months?
Thanks once more
Cheers
Dave
ok i am trying to figure out how to attach the file- mathetesSep 12, 2022Gold Contributor
I"ll take another look at the file in the morning, but I'm pretty sure I'm going to come back and suggest a radical reorganization of it.
First I have to figure out what it all IS in the first place. You're familiar with it, so it may seem obvious to you. What, for example, are the various line entries under each month, under the headings of "Takings" and "Costs"--as well as the section in the middle that seems to lack a heading other than the month name, which presumably applies to all three sections?
But very seriously, this may be a way to organize data so that you as a human can look at it and make sense of it, but it's NOT a way to organize it to take optimum advantage of Excel. Assuming it has something to do with tracking income and/or expenses on a monthly basis, you'd be FAR better off learning to create it as a transactional database--same data you have now, just keeping it all as one table, letting the dates alone take care of whether it's the month of Jan or Feb or Mar.....
I'm attaching yet another example of how that could work, letting the Pivot Table do all the heavy lifting. See if it makes sense. You can learn to do it later--not as hard as you might think. In fact, a LOT easier than making what you have so far work and work reliably. Notice the sheet called "Raw Data" and then the one labelled "Summary." ALL of the summarized data on the summary sheet was handled by the Pivot Table tool; not a single formula had to be entered. That's how powerful the tool is. And as you can see, it's broken out by month and category......