Sumproduct with 2 range of variation

YJUNH

New Member
Joined
Aug 28, 2014
Messages
1
Dear All,

Im working on a raw data as below and i need to know how does sumproduct can help me to generate a formula with a range of variation for both the column and the row in red and green respectively.

Trial Balance
GL accountDescription Function->3200032100321203220033000331203314033220332403330034000
101200 Accum.depr. for IT Software0.000.000.00100.000.000.000.000.000.000.000.00
141000 IT-Hardware2000.000.000.000.000.000.000.000.000.000.00
141100 Accum.depr. for IT-Hardware0.000.0010000.000.000.000.000.000.000.000.00
142000 Office Furniture/F & F0.000.000.000.000.009990.000.000.000.000.00
142100 Accum.d.Office Furniture/F & F0.000.000.000.000.000.000.005550.000.000.00



<colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>

i want to do it in a way as below but tried multiple times and searches on the internet to no avail. =(

i need a formula if function (4 Variation) = 32200 or 32210 or 32220 or 32222 with a combination GL code of 5 variation and will generate the result for me based on above table.



5- DIRECT: BLUE COLLARSAmountFunction 1Function 2Function 3Function 4GL CodeGL CodeGL CodeGL CodeGL Code
Salaries - Full Time (Result)3220032210 3222032222400100 4002004003002525255000
Salaries - Part Time/Temp - 3220032210 1234554321
Salaries - incentives - 3220032210
Overtime - 3220032210
Bonus - 3220032210 400600

<colgroup><col><col><col><col span="2"><col><col><col span="4"></colgroup><tbody>
</tbody>


My predecessor has used the below formula on her own table but its too profound for me to understand.

SUMPRODUCT((COUNTIF($D4:$L4,TrialBalanceDXY!$B$29:$B$278)>0)*(COUNTIF($C4,"*"&LOOKUP(COLUMN(TrialBalanceDXY!$H$28:$BF$28)+0.5,COLUMN(TrialBalanceDXY!$H$28:$BF$28)/(LEN(TrialBalanceDXY!$H$28:$BF$28)>0),TrialBalanceDXY!$H$28:$BF$28)&"*")>0)*TrialBalanceDXY!$H$29:$BF$278)/1000

Any help will be greatly appreciated~~
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Forum statistics

Threads
1,214,976
Messages
6,122,541
Members
449,089
Latest member
davidcom

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