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!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Excel/open office spreadsheet help required
SoozyJ22
Posts: 3,286 Forumite
in Techie Stuff
Hi everyone, I hope someone here can help me as all my usual excel experts have gone awol.
I've made a spreadsheet in in open office to record my prize wins this year. Really basic format: Date of win, Description of prize, Value, and whether online or offline.
Now what I really want is to be able to get two subtotals for my online and offline winnings. Ie one sum of all the values in rows where the online/offline column is "online" and another for the rows where that column contains the word "offline". Is this possible and if so how?
Thanks very much, Susie.
I've made a spreadsheet in in open office to record my prize wins this year. Really basic format: Date of win, Description of prize, Value, and whether online or offline.
Now what I really want is to be able to get two subtotals for my online and offline winnings. Ie one sum of all the values in rows where the online/offline column is "online" and another for the rows where that column contains the word "offline". Is this possible and if so how?
Thanks very much, Susie.
0
Comments
-
Use COUNTIF.:grouphug: Things can only get better.0
-
ye Countif will do it.
The other is use a standard if and have a hidden cell table which has:
Online - 1
Offline - 2
where online and offlin are in one column on 2 rows and same with 1 and 2
Then you can use an if using the number that online or offline relates to .. hope that makes sense lol[FONT=Arial, Helvetica, sans-serif]"The internet is a great way to get on the net."
- Bob Dole, Republican presidential candidate[/FONT]0 -
Use SUMIF to add up your winnings. You can add values in one column based upon whether the value in another column matches some criteria.
Use COUNTIF to count values based upon some criteria.0 -
Thanks guys. Sorry for being stupid, but could you provide me an example of the right syntax? I can't quite work it out.0
-
SUMIF:
http://www.techonthenet.com/excel/formulas/sumif.php
COUNTIF:
http://www.techonthenet.com/excel/formulas/countif.php
Unless someone can correct me I don't believe you can use a WORD within the if argument. For example instead of >= 2001 in the example above, using == ONLINE or == Offline.
The only way to do it is to use a number for online and a number for offline (1 for online 0 for offline) then use that number in the argument rather than the word online or offline
[FONT=Arial, Helvetica, sans-serif]"The internet is a great way to get on the net."
- Bob Dole, Republican presidential candidate[/FONT]0 -
Thanks for the link - the worked example is really handy. I'm using 1/0 for online/offline now but I just can't get it work. It just says "#NAME?' and I've done it just like the example.0
-
e.g.
COUNTIF(D1:D16,"OFFLINE")
COUNTIF(D1:D16,"ONLINE")
D1 to D16 are presumably all either online or offline
The grinning faces are meant to be colons!!!!!
Sorry I misread the first post, Spotter's answer below is great.:grouphug: Things can only get better.0 -
win values in C2:C4 on/offline in D2:D4 sum of online wins =SUMIF(D2:D4,"online",C2:C4) sum of offline wins =SUMIF(D2:D4,"offline",C2:C4)
0 -
Thanks everyone. I've finally got it working
It seems you need to use semi colons instead of commas in open office. I can't get it to work using "online" and "offline" either, but a value of 0 or 1 is working fine (would you believe it but I'm actually a computer programmer so am used to binary flags). 0 -
OK, very wierdly, I can use "Offline" but "Online" doesn't work, so I've change "Online" to "<>Offline" and that works!
Thanks so much everyone :beer:0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.2K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.6K Work, Benefits & Business
- 602.9K Mortgages, Homes & Bills
- 178.1K Life & Family
- 260.6K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards
