Conditional Sum with Many cri by formula or VBA

MyExcel

Well-known Member
Joined
Sep 25, 2008
Messages
508
hi guru
i have this data
and this data grow day by data, my Real data more than 15000 row
Excel 2012
ABCDEFGHIJKLMNOPQRS
1TruckType01/Jan/201301/Feb/201301/Mar/201301/Apr/201301/May/201301/Jun/201301/Jul/201301/Aug/201301/Sep/201301/Oct/201301/Nov/201301/Dec/2013MonthTruckType
2Truck 3Fl 202 886 315 399 157 380 593 271 720 482 227 961 5Truck 3Fl
3Truck 1InDir 218 803 228 603 670 374 956 495 113 581 571 596 Truck 1S Typ
4Truck 5Fl 247 763 932 321 837 962 469 822 939 275 496 734 Truck 5InDir
5Truck 4Fl 269 373 846 325 972 232 736 490 914 979 969 537
6Truck 3S Typ 321 389 261 460 450 331 202 420 690 486 269 440
7Truck 2InDir 328 274 747 375 410 191 516 528 919 536 347 734
8Truck 2Fl 345 764 678 557 928 920 821 296 181 578 954 938
9Truck 4Dir 363 216 449 645 890 628 778 141 432 850 199 364
10Truck 2InDir 387 327 444 657 287 680 512 976 723 232 794 759
11Truck 4InDir 398 826 854 876 322 496 661 966 467 275 673 586
12Truck 8InDir 501 186 501 881 748 634 919 945 397 740 748 826
13Truck 4Dir 505 254 467 470 837 402 126 905 760 196 997 616
14Truck 1Fl 510 215 953 297 584 557 146 191 350 819 274 887
15Truck 1Dir 568 464 586 231 746 966 957 718 491 196 494 639
16Truck 2Dir 638 965 157 652 277 864 849 342 842 291 372 467
17Truck 1Dir 648 584 234 989 340 506 403 839 238 347 765 460
18Truck 3Dir 693 663 998 531 810 142 951 576 140 410 796 879
19Truck 3InDir 753 336 277 452 201 245 951 547 694 890 385 557
20Truck 4InDir 759 602 234 258 676 840 426 947 311 232 466 492
21Truck 3Dir 816 461 139 232 463 532 958 104 996 753 290 771
22Truck 2Fl 884 984 447 740 279 652 573 422 344 266 806 333

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1






i want to sum the Value Cri in range Q1:S4
month = 5
Truck = Truck 3 or Truck 1 or Truck 5
Type = Fl or S Type or InDir

can Excel Formula Solve it
if not
any Suggestion for good Code to fast and accurte

thank you in advanced
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hi there

That's the perfect case for the DSUM formula! Check it out please :)
 
Upvote 0
????
could any one please solve it by formula or VBA

i want VBA it will be better for me
 
Upvote 0
MyExcel,

Did you spend 5 minutes in the help files looking at the DSUM and its syntax / required arguments?
I don't think so. You already replied 20 minutes after my suggestion.
With almost 500 posts at MrExcel, you should be able to get a higher standard of posting etiquette.

I prefer to donate my time and knowledge to other users.
 
Upvote 0
MyExcel,

Did you spend 5 minutes in the help files looking at the DSUM and its syntax / required arguments?
I don't think so. You already replied 20 minutes after my suggestion.
With almost 500 posts at MrExcel, you should be able to get a higher standard of posting etiquette.

I prefer to donate my time and knowledge to other users.

hi wigi
i tried but i can't
 
Upvote 0

Forum statistics

Threads
1,215,479
Messages
6,125,041
Members
449,206
Latest member
Healthydogs

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