SUMIFS function not filter values as i filter data from dropdown arrow

pankajgrover

Board Regular
Joined
Oct 27, 2022
Messages
157
Office Version
  1. 2021
Platform
  1. Windows
Shares Search Filter 2.xlsx
ABCDEFGHIJKL
1APPLEAdvanced Search Bar - All Column Search
2
3
4
5
676Average289.7422020.50
7DateParticularQtyBuy/SellPriceTotalsParticularQtyTotalsAVG
806/08/2024 APPLE50BUY287.0014350.00 APPLE8154702.25675.34
906/08/2024 APPLE25BUY287.807195.00 0.00 
1006/08/2024 APPLE1SELL475.50475.50 0.00 
search_bar
Cell Formulas
RangeFormula
C6,F6C6=SUBTOTAL(9,C8:C1000)
E6E6=F6/C6
A8:F11A8=FILTER(my_data,NOT(ISERROR(SEARCH(A1,my_data[Particular]))),"")
I8I8=FILTER(UNIQUE($B$8:$B$1000),UNIQUE($B$8:$B$1000)<>0)
J8:J10J8=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I8)
K8:K10K8=SUMIFS($F$8:$F$1000,$B$8:$B$1000,I8)
L8:L10L8=IFERROR(K8/J8, "")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A8:F1000Celldoes not contain a blank value textNO


As you seen in above excel in yellow cell J8 and L8 values are not filter as i filter data. J8 value should be 76 and L8 value should be 289.74. Kindly guide how to correct this. Thanks
 
Your filter formula is not filtering by date, it's filtering on col B.
 
Upvote 0

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Your filter formula is not filtering by date, it's filtering on col B.
How to correct that if i want both filter A col and B col. In above example Row 7 have (Filter Ctrl+Shift+L) option is on. so A7 col date right side have little down-arrow button where i am selecting manually date to check data date wise also. you can guide and pls correct my formula and data.. should i send you my complete workbook ? here is no complete workbook attachment option ?
 

Attachments

  • Screenshot (11).png
    Screenshot (11).png
    20.3 KB · Views: 0
Upvote 0
It would have helped if you had said you were using the AutoFilter, especially as you are also using the Filter function. ;)
In G8 put
Excel Formula:
=MAP(INDEX(A8#,,1),LAMBDA(m,SUBTOTAL(103,m)))
and then use
Excel Formula:
=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I8,$G$8:$G$1000,1)
 
Upvote 0
Solution
It would have helped if you had said you were using the AutoFilter, especially as you are also using the Filter function. ;)
In G8 put
Excel Formula:
=MAP(INDEX(A8#,,1),LAMBDA(m,SUBTOTAL(103,m)))
and then use
Excel Formula:
=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I8,$G$8:$G$1000,1)
Thanks for helping me all the times. i am a basic user and i am still learning. Creating search box and auto filter syntax in A1, i just learn from youtube , may be its possible conflict with other filter.

Now i am on the bed , morning i will check your this commands and revert you. Thanks for giving me your valuable time.
 
Upvote 0
It would have helped if you had said you were using the AutoFilter, especially as you are also using the Filter function. ;)
In G8 put
Excel Formula:
=MAP(INDEX(A8#,,1),LAMBDA(m,SUBTOTAL(103,m)))
and then use
Excel Formula:
=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I8,$G$8:$G$1000,1)
Wow its working. great . you are genius.. that is i want .. now data updated as i filter table. Thank you so much sir (y) its was not easy but you did it with these command =MAP(INDEX(A8#,,1),LAMBDA(m,SUBTOTAL(103,m)))
 
Upvote 0
You're welcome & thanks for the feedback.
Hi another issue comes i did not figure out , as you know i already (Filter Ctrl+Shift+L) option is on my header. there are 3 dates 04 Aug, 05 Aug, 06 Aug.. when i select all date or only 06/08/2024 right side unique stocks average comes , but when i filter on date and select 04 Aug or 05 Aug dates unique stocks average data not visible , here screen shot attached.. kindly look where i am mistaken .. Thanks

Shares Search Filter APPLE.xlsx
ABCDEFGHIJKL
1Advanced Search Bar - All Column Search
2
3
4
5Unique Stocks Average
6220Average1926.87423911.30
7DateParticularQtyBuy/SellPriceTotalsParticularQtyTotalsAVG
806/08/2024 MICROSOFT25BUY135.703392.501 MICROSOFT66286841.654346.09
906/08/2024 SAMSUNG5BUY643.503217.501 SAMSUNG1119488.451771.68
1006/08/2024 NETFLIX11BUY3347.7036824.701 NETFLIX6262878.951014.18
1106/08/2024 APPLE50BUY287.0014350.001 APPLE8154702.25675.34
1206/08/2024 MICROSOFT5SELL49899.90249499.501 0.00 
1306/08/2024 SAMSUNG1BUY5187.705187.701 0.00 
1406/08/2024 NETFLIX25BUY135.843396.001 0.00 
1506/08/2024 APPLE25BUY287.807195.001 0.00 
1606/08/2024 MICROSOFT11BUY1610.6517717.151 0.00 
1706/08/2024 SAMSUNG4BUY2651.6010606.401 0.00 
1805/08/2024 NETFLIX1BUY2650.752650.751 0.00 
1905/08/2024 APPLE1SELL475.50475.501 0.00 
2005/08/2024 MICROSOFT25BUY649.3016232.501 0.00 
2105/08/2024 SAMSUNG1BUY476.85476.851 0.00 
2204/08/2024 NETFLIX25BUY800.3020007.501 0.00 
2304/08/2024 APPLE5BUY6536.3532681.751 0.00 
search_bar
Cell Formulas
RangeFormula
C6,F6C6=SUBTOTAL(9,C8:C1000)
E6E6=F6/C6
A8:F23A8=FILTER(my_data,NOT(ISERROR(SEARCH(A1,my_data[Particular]))),"")
G8:G23G8=MAP(INDEX(A8#,,1),LAMBDA(m,SUBTOTAL(103,m)))
I8:I11I8=FILTER(UNIQUE($B$8:$B$1000),UNIQUE($B$8:$B$1000)<>0)
J8J8=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I8,$G$8:$G$1000,1)
K8K8=SUMIFS($F$8:$F$1000,$B$8:$B$1000,I8,$G$8:$G$1000,1)
L8:L23L8=IFERROR(K8/J8, "")
J9:J23J9=SUMIFS($C$8:$C$1000,$B$8:$B$1000,I9)
K9:K23K9=SUMIFS($F$8:$F$1000,$B$8:$B$1000,I9)
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A8:F1000Celldoes not contain a blank value textNO
 

Attachments

  • Screenshot 2024-08-11 202116.png
    Screenshot 2024-08-11 202116.png
    37.7 KB · Views: 0
Upvote 0
That's because those rows are hidden by the autofilter. You will need to move your formula to another area.
 
Upvote 0
That's because those rows are hidden by the autofilter. You will need to move your formula to another area.
how will do that ?. can you correct my formula please. search box and autofilter if have to be removed for this purpose we can. but what commands should i use instead of these . please guide me.. Thanks
 
Upvote 0
You already have the formula. You just need to move them to another location, so that they do not get hidden when you hide rows using the autofilter.
 
Upvote 0

Forum statistics

Threads
1,221,418
Messages
6,159,791
Members
451,589
Latest member
Harold14

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