Conditional Sum

wsr429

New Member
Joined
Mar 18, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. MacOS
Hi, I am hoping someone more experienced with Excel can help me create a formula for a sample spreadsheet.

A B
1 03-15-2023 16.33
2 06-15-2023 21.19
3 09-15-2023 10.00
4 12-15-2024 55.00
5 Interest
6 07-15-2023 16.33
7 10-15-2023 21.19
8 01-15-2023 10.00
9 04-15-2024 55.00

I would like to sum all cells from B1 to B9 which have a corresponding year of "2023" in A1 to A9 unless:

the value in B1 to B9 is not numeric

Your help would be appreciated!
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi wsr429

Why do you want to sum values in text format, Excel does not know how to do it, already transform your data into numerical values

Then, you can use SUMIFS()
 
Upvote 0
Hi, see the linked file for a possible solution...

The formula used in the table:
=SUMIFS(B:B,A:A,">="&DATE(F2,1,1),A:A,"<="&DATE(F2,12,31))

CondSum.xlsx

CondSum.png
 
Upvote 0
Solution
@BrianM45 – Sorry, I meant to have “Interest” in B6

@fjns – Thanks so much for posting a formula for me. It works great. I really appreciate it!
 
Upvote 0
Hi, I am very glad that the formula works.
If I have enough knowledge, I am happy to help at any time.
 
Upvote 0

Forum statistics

Threads
1,214,518
Messages
6,119,985
Members
448,935
Latest member
ijat

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top