SumIfs Formula

MohanadElnashar

New Member
Joined
Sep 30, 2024
Messages
1
Office Version
  1. 365
Platform
  1. Windows
=SUMIFS($D:$D,$C:$C,H9638,$E:$E,"="&L9638)

I used this formula for a spreadsheet that contains stock names, the total stocks owned (either sold or bought), and the value>


at the top of the table the date is written
i want to sum for a certain stock on a certain date the amount bought rather than going through them one by one as there is more than year worth of data on stocks bough and sold with theri value
so the i tried the sumifs formula above but it does not work

the D:D is the amount of stock owned, the C:C IS THE name of the stocks, the E:E is where the dates above each table is written, the L9638 is the date i'm searching for, and the H9638 is the stock name

if i change the equal sign to more than sign it works but with the equal sign it gives not data back
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
why not just use the cell ???

=SUMIFS($D:$D,$C:$C,H9638,$E:$E,L9638)

if you want a range of dates , then have the lower and higher dates in 2 cells
=SUMIFS($D:$D,$C:$C,H9638,$E:$E,">="&L9638, $E:$E,"<="&other cell )
 
Upvote 0
if i change the equal sign to more than sign it works but with the equal sign it gives not data back
Hi, do your dates in column E also have a time element?

If so, you could try like this:
Excel Formula:
=SUMIFS($D:$D,$C:$C,H9638,$E:$E,">="&L9638,$E:$E,"<"&L9638+1)
 
Upvote 0

Forum statistics

Threads
1,222,226
Messages
6,164,709
Members
451,911
Latest member
Sam1am

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