[Solved] Count column C where column D = "A"?

Discuss the spreadsheet application
Locked
Kirjava
Posts: 39
Joined: Sun May 03, 2015 2:58 pm

[Solved] Count column C where column D = "A"?

Post by Kirjava »

I already tried AI, it couldn't figure this out and all of their suggestions returned ERR:508.
I don't know if what I'm asking about is even possible.
List of films in storage. I want to check if there's any space left in each box without pulling it out.
The boxes fit 2 rows of 21 DVDs, so I split it so Box-1 = Row-A + Row-B, Box-2 = Row-C + Row-D, etc

List of films, tv series, and games:
A_______B______C____D
Title__Format__Size__Row
Item-1__DVD_____8____A
Item-2__DVD_____4____B
Item-3__BRD_____1____C
Item-4__UMD____.5____C
The size is how big the box sets are, meaured in regular DVD cases.

(hidden...)
_______E_______________F________ etc.
=IF(D#="A";C#;0)__=IF(D#="B";C#;0)__ etc.

AH___AI
Box__Total
A____=SUM(E2:E#)
B____=SUM(F2:F#)
C____=SUM(G2:G#)
etc.

I want it to count the total in column C where column D = "A" without having a hidden column for it.
Once I figure it out I'll probably think of a dozen uses for it.
Last edited by MrProgrammer on Sun Aug 10, 2025 9:24 pm, edited 2 times in total.
Reason: Tagged ✓ [Solved]
OpenOffice 3.1 on Windows 7
User avatar
MrProgrammer
Moderator
Posts: 5468
Joined: Fri Jun 04, 2010 7:57 pm
Location: Wisconsin, USA

Re: Count column C where column D = "A"?

Post by MrProgrammer »

Kirjava wrote: Sat Aug 09, 2025 5:20 pm I want it to count the total in column C where column D = "A"
[Tutorial] The SUMPRODUCT function

If you need any additional assistance attach a spreadsheet demonstrating the difficulty (remove confidential information then use Post Reply, not Quick Reply, and don't attach a picture instead of the spreadsheet itself). I will not help further unless you attach a spreadsheet document.

If this solved your problem please go to your first post use the Edit ✏️ button and add [Solved] to the start of the Subject field. Select the green checkmark icon at the same time.

[Tutorial] Ten concepts that every Calc user should know
Mr. Programmer
AOO 4.1.7 Build 9800, MacOS 13.7.8, iMac Intel.   The locale for any menus or Calc formulas in my posts is English (USA).
Kirjava
Posts: 39
Joined: Sun May 03, 2015 2:58 pm

Re: Count column C where column D = "A"?

Post by Kirjava »

Thank you. I knew there should be an easier way to do it.
OpenOffice 3.1 on Windows 7
Locked