Improve formula

Kazdima

Board Regular
Joined
Oct 15, 2010
Messages
226
Hello,
would you please help me to improve the following formula?

.=-IFERROR(SUMIF(TB!$A$7:$A$10000,$B6,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")

I need add one more MATCH cell $J$4, TB!$B$6:$B$2000.

Thank you.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Looks like you need SUMIFS...

=-IFERROR(SUMIFS(TB!$A$6:$A$10000,$B6,TB!$B$6:$B$10000,$J$4,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")
 
Upvote 0
Hello,
the formula give "#value". I see that in formula we are matching only to F3, but not to J4. Amount should be selected from C6:C10000 if a cross reference matches to two exact changing selections - F3 and J4.
 
Upvote 0
Hello all,
Can anyone help to improve this formula?
=IF($J$4="",SUM(TB!$C$6:$P$10000),IFERROR(SUMIFS(INDEX(TB!$C$6:$P$10000,0,MATCH($D$3,TB!$C$5:$P$5,0)),TB!$A$6:$A$10000,$B8,TB!$B$6:$B$10000,$J$4),""))
It returns "zero" instead of $4,000.
Initially, I had this formula:

=IFERROR(SUMIF(TB!$A$7:$A$10000,$B6,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")

I needed to add one more MATCH cell $J$4, TB!$B$6:$B$2000.
 
Upvote 0
Hello all,
Can anyone help to improve this formula?
=IF($J$4="",SUM(TB!$C$6:$P$10000),IFERROR(SUMIFS(INDEX(TB!$C$6:$P$10000,0,MATCH($D$3,TB!$C$5:$P$5,0)),TB!$A$6:$A$10000,$B8,TB!$B$6:$B$10000,$J$4),""))
It returns "zero" instead of $4,000.
Initially, I had this formula:

=IFERROR(SUMIF(TB!$A$7:$A$10000,$B6,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")

I needed to add one more MATCH cell $J$4, TB!$B$6:$B$2000.


The formula tests also J4...


=IFERROR(SUMIFS(TB!$A$6:$A$10000,$B6,TB!$B$6:$B$10000,$J$4,INDEX(TB!$C$6:$P$10000,0,MATCH($F$3,TB!$C$5:$P$5,0))),"")
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,874
Members
452,363
Latest member
merico17

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