"SUMIFS" from table with sort cell

eddor

New Member
Joined
Jul 20, 2018
Messages
2
Hi All Master, Greeting from Indonesia :cool:


I am Edo, after a long time become silent user fan:hammer::hammer: MrExcel today I joined in this forum and need to share some issue that I can't find the similar issue from any thread.

I have an excel table and some formula for sum as below :

=IF(SortOrder2="Rev SFDC",SUMIFS($J$11:$J$970,$E$11:$E$970,$I$2,$G$11:$G$970,J1),SUMIFS($L$11:$L$970,$E$11:$E$970,$I$2,$G$11:$G$970,J1))

When I sort some column ( ex- column PP with sort only for "A" value ), the SUMIFS formula above not sum correctly due to the sort process just hide another line without "A" value.

What the right formula for sort in the same result even user sort some column

[TABLE="width: 1471"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]JUL[/TD]
[TD]AUG[/TD]
[TD]SEP[/TD]
[TD]Q2[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]A[/TD]
[TD="align: right"]2,127[/TD]
[TD="align: right"]4,517[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]6,644[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]B[/TD]
[TD="align: right"]1,323[/TD]
[TD="align: right"]5,728[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]7,051[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]C[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]6,000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]6,000[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]D[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]T[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]S[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Forcast[/TD]
[TD="align: right"]3,450[/TD]
[TD="align: right"]16,245[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]19,695[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]Rev SFDC[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]ID[/TD]
[TD]Sales[/TD]
[TD]Project Name[/TD]
[TD]End Customer[/TD]
[TD]PP[/TD]
[TD]ECD[/TD]
[TD]ECD MTH[/TD]
[TD]MIS BT[/TD]
[TD]BT FCST[/TD]
[TD]Rev SFDC[/TD]
[TD]GM SFDC[/TD]
[TD]Rev OMS[/TD]
[TD]GM OMS[/TD]
[/TR]
[TR]
[TD]0066F00000qxOZt[/TD]
[TD]Andi[/TD]
[TD]Security Gate[/TD]
[TD]PT. Jaya Abadi[/TD]
[TD]B[/TD]
[TD="align: right"]8/31/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]122[/TD]
[TD="align: right"]41[/TD]
[TD="align: right"]422[/TD]
[TD="align: right"]41[/TD]
[/TR]
[TR]
[TD]0066F00000grRQC[/TD]
[TD]Anwar[/TD]
[TD]Data Center[/TD]
[TD]Lembaga Data[/TD]
[TD]B[/TD]
[TD="align: right"]8/10/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]3,000[/TD]
[TD="align: right"]900[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]0066F00000o88IC[/TD]
[TD]Anwar[/TD]
[TD]DRC[/TD]
[TD]Lembaga Data[/TD]
[TD]A[/TD]
[TD="align: right"]8/9/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]453[/TD]
[TD="align: right"]63[/TD]
[TD="align: right"]793[/TD]
[TD="align: right"]63[/TD]
[/TR]
[TR]
[TD]0066F00000o8F5w[/TD]
[TD]Anwar[/TD]
[TD]Infrastructure Enhancment-II[/TD]
[TD]CV Avanza[/TD]
[TD]A[/TD]
[TD="align: right"]12/8/2018[/TD]
[TD]DEC[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]894[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]0066F00000mnKMM[/TD]
[TD]Danny Rosdian[/TD]
[TD]Enterprise Oracle[/TD]
[TD]INDO LELE[/TD]
[TD]A[/TD]
[TD="align: right"]8/16/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]4,064[/TD]
[TD="align: right"]800[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]0066F00000jb9aJ[/TD]
[TD]Desiree[/TD]
[TD]MIEKOCOK EXTENDED[/TD]
[TD]TOKO KLENTONG[/TD]
[TD]B[/TD]
[TD="align: right"]7/31/2018[/TD]
[TD]JUL[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]112[/TD]
[TD="align: right"]132[/TD]
[TD="align: right"]750[/TD]
[TD="align: right"]150[/TD]
[/TR]
[TR]
[TD]0062000000Tmut6[/TD]
[TD]Desiree[/TD]
[TD]MIEKOCOK[/TD]
[TD]TOKO KLENTONG[/TD]
[TD]B[/TD]
[TD="align: right"]7/31/2018[/TD]
[TD]JUL[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]279[/TD]
[TD="align: right"]95[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]0066F00000igSKJ[/TD]
[TD]Virgia[/TD]
[TD]BIG DATA[/TD]
[TD]HUTAN RIMBA, LTD[/TD]
[TD]B[/TD]
[TD="align: right"]8/16/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]1,300[/TD]
[TD="align: right"]501[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]0066F00000moEHN[/TD]
[TD]Virgia[/TD]
[TD]CCTV[/TD]
[TD]HUTAN RIMBA, LTD[/TD]
[TD]B[/TD]
[TD="align: right"]8/16/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]1,306[/TD]
[TD="align: right"]860[/TD]
[TD="align: right"]1,306[/TD]
[TD="align: right"]912[/TD]
[/TR]
[TR]
[TD]0066F00000gF0a2[/TD]
[TD]LIM[/TD]
[TD]ATS Exalogic Elastic Cloud Phase 1[/TD]
[TD]LELEKOM[/TD]
[TD]A[/TD]
[TD="align: right"]7/31/2018[/TD]
[TD]JUL[/TD]
[TD]Oracle[/TD]
[TD]MAY[/TD]
[TD="align: right"]1,837[/TD]
[TD="align: right"]195[/TD]
[TD="align: right"]1,033[/TD]
[TD="align: right"]205[/TD]
[/TR]
[TR]
[TD]0066F00000p2EEY[/TD]
[TD]LIM[/TD]
[TD]ATS Exalogic Elastic Cloud Phase 2[/TD]
[TD]LELEKOM[/TD]
[TD]B[/TD]
[TD="align: right"]7/31/2018[/TD]
[TD]JUL[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]931[/TD]
[TD="align: right"]121[/TD]
[TD="align: right"]631[/TD]
[TD="align: right"]121[/TD]
[/TR]
[TR]
[TD]0066F00000p2EFC[/TD]
[TD]LIM[/TD]
[TD]ATS Exalogic Elastic Cloud Phase 3[/TD]
[TD]LELEKOM CELL[/TD]
[TD]A[/TD]
[TD="align: right"]7/31/2018[/TD]
[TD]JUL[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]290[/TD]
[TD="align: right"]53[/TD]
[TD="align: right"]590[/TD]
[TD="align: right"]53[/TD]
[/TR]
[TR]
[TD]0066F00000qxPxY[/TD]
[TD]LIM[/TD]
[TD]Oracle Manage Operation[/TD]
[TD]LELEKOM CELL[/TD]
[TD]C[/TD]
[TD="align: right"]8/31/2018[/TD]
[TD]AUG[/TD]
[TD]Unconfirmed[/TD]
[TD][/TD]
[TD="align: right"]6,000[/TD]
[TD="align: right"]2,880[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
<link rel="File-List" href="<a href=" file:="" c:="" users="" eddor="" desktop="" sum%20temp_files="" filelist.xml"="" target="_blank"><link id="shLink" href="<a href=" file:="" c:="" users="" eddor="" desktop="" sum%20temp_files="" sheet001.htm"="" target="_blank"><link id="shLink">
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,632
Latest member
jladair

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