I have grid as below and comparing column number A,D & E amount is arrived but now I want to add additional criteria column B & C
grid
[TABLE="width: 384"]
<tbody>[TR]
[TD="class: xl64, width: 64"]SS[/TD]
[TD="class: xl64, width: 64"]DESG[/TD]
[TD="class: xl64, width: 64"]ACH%[/TD]
[TD="class: xl63, width: 64"]FROM[/TD]
[TD="class: xl64, width: 64"]TO[/TD]
[TD="class: xl64, width: 64"]AMT[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]100000[/TD]
[TD="class: xl63, align: right"]158999[/TD]
[TD="class: xl63, align: right"]50000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]159000[/TD]
[TD="class: xl63, align: right"]217999[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]218000[/TD]
[TD="class: xl63, align: right"]276999[/TD]
[TD="class: xl63, align: right"]80000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]277000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]95000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]120000[/TD]
[TD="class: xl63, align: right"]188999[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]189000[/TD]
[TD="class: xl63, align: right"]257999[/TD]
[TD="class: xl63, align: right"]90000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]258000[/TD]
[TD="class: xl63, align: right"]326999[/TD]
[TD="class: xl63, align: right"]115000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]327000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]140000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]110000[/TD]
[TD="class: xl63, align: right"]186999[/TD]
[TD="class: xl63, align: right"]45000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]187000[/TD]
[TD="class: xl63, align: right"]263999[/TD]
[TD="class: xl63, align: right"]60000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]264000[/TD]
[TD="class: xl63, align: right"]340999[/TD]
[TD="class: xl63, align: right"]75000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]341000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]90000
[/TD]
[/TR]
</tbody>[/TABLE]
data:-
[TABLE="width: 348"]
<tbody>[TR]
[TD]SS[/TD]
[TD]DESG[/TD]
[TD]ACH[/TD]
[TD]RANGE[/TD]
[TD]AMT REQUIRE[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]105000[/TD]
[TD]50000[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS2[/TD]
[TD]99[/TD]
[TD]220000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS3[/TD]
[TD]100[/TD]
[TD]95000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]195000[/TD]
[TD]65000[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]180000[/TD]
[TD]65000[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS2[/TD]
[TD]100[/TD]
[TD]85000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS3[/TD]
[TD]99[/TD]
[TD]300000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]350000[/TD]
[TD]115000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]101000[/TD]
[TD]60000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS2[/TD]
[TD]99[/TD]
[TD]400000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS3[/TD]
[TD]100[/TD]
[TD]750000[/TD]
[TD]90000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]225000[/TD]
[TD]60000[/TD]
[/TR]
</tbody>[/TABLE]
the formula i am using
=SUMIFS($F$2:$F$13,$A$2:$A$13,I2,$D$2:$D$13,"<="&L2,$E$2:$E$13,">="&L2)
grid
[TABLE="width: 384"]
<tbody>[TR]
[TD="class: xl64, width: 64"]SS[/TD]
[TD="class: xl64, width: 64"]DESG[/TD]
[TD="class: xl64, width: 64"]ACH%[/TD]
[TD="class: xl63, width: 64"]FROM[/TD]
[TD="class: xl64, width: 64"]TO[/TD]
[TD="class: xl64, width: 64"]AMT[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]100000[/TD]
[TD="class: xl63, align: right"]158999[/TD]
[TD="class: xl63, align: right"]50000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]159000[/TD]
[TD="class: xl63, align: right"]217999[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]218000[/TD]
[TD="class: xl63, align: right"]276999[/TD]
[TD="class: xl63, align: right"]80000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AA[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]277000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]95000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]120000[/TD]
[TD="class: xl63, align: right"]188999[/TD]
[TD="class: xl63, align: right"]65000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]189000[/TD]
[TD="class: xl63, align: right"]257999[/TD]
[TD="class: xl63, align: right"]90000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]258000[/TD]
[TD="class: xl63, align: right"]326999[/TD]
[TD="class: xl63, align: right"]115000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AB[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]327000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]140000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS1[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]110000[/TD]
[TD="class: xl63, align: right"]186999[/TD]
[TD="class: xl63, align: right"]45000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS2[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]187000[/TD]
[TD="class: xl63, align: right"]263999[/TD]
[TD="class: xl63, align: right"]60000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS3[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]264000[/TD]
[TD="class: xl63, align: right"]340999[/TD]
[TD="class: xl63, align: right"]75000[/TD]
[/TR]
[TR]
[TD="class: xl64"]AC[/TD]
[TD="class: xl64"]SS4[/TD]
[TD="class: xl64"]100[/TD]
[TD="class: xl63, align: right"]341000[/TD]
[TD="class: xl63, align: right"]9999999[/TD]
[TD="class: xl63, align: right"]90000
[/TD]
[/TR]
</tbody>[/TABLE]
data:-
[TABLE="width: 348"]
<tbody>[TR]
[TD]SS[/TD]
[TD]DESG[/TD]
[TD]ACH[/TD]
[TD]RANGE[/TD]
[TD]AMT REQUIRE[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]105000[/TD]
[TD]50000[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS2[/TD]
[TD]99[/TD]
[TD]220000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS3[/TD]
[TD]100[/TD]
[TD]95000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]195000[/TD]
[TD]65000[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]180000[/TD]
[TD]65000[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS2[/TD]
[TD]100[/TD]
[TD]85000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS3[/TD]
[TD]99[/TD]
[TD]300000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]350000[/TD]
[TD]115000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS1[/TD]
[TD]100[/TD]
[TD]101000[/TD]
[TD]60000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS2[/TD]
[TD]99[/TD]
[TD]400000[/TD]
[TD]0[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS3[/TD]
[TD]100[/TD]
[TD]750000[/TD]
[TD]90000[/TD]
[/TR]
[TR]
[TD]AC[/TD]
[TD]SS4[/TD]
[TD]100[/TD]
[TD]225000[/TD]
[TD]60000[/TD]
[/TR]
</tbody>[/TABLE]
the formula i am using
=SUMIFS($F$2:$F$13,$A$2:$A$13,I2,$D$2:$D$13,"<="&L2,$E$2:$E$13,">="&L2)