If, Sumif, aggregate, rows?

Aberdham

Board Regular
Joined
Mar 8, 2018
Messages
163
Office Version
  1. 365
Platform
  1. Windows
Hi Guys,

as indicated, the numbers marked in red are the expect results, process and registration fee will be extracted from table 3 and cost will be extracted from table 2; couldn't really pinpoint what formula to use, a few look ups ?

could you help me with any formulas with regard to this?


Table 1
Serial numberProcess feeRegistration feeProcess costRegistration cost
1235255245+5647-547556485245+5647+54755648
12654254154512
124562
124851
124487
589581C
V156894526-45624526+4562

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

Table 2
Serial numberInvoice numberDescriptionCustomerAmount
1235251562Process fee_04.18-06.18.2018_SN_123525A5245
1895registration fee_04.18-06.18.2018_SN_123525A5648
4589Process fee_04.18-06.18.2018_SN_123525A5647
MJJK-221Process fee_04.18-06.18.2018_SN_123525A5475
1265425652Process fee_04.18-06.18.2018_SN_126542B5415
2452registration fee_04.18-06.18.2018_SN_126542B4512
1245622154Process fee_04.18-06.18.2018_SN_124562C5541
5541registration fee_04.18-06.18.2018_SN_124562C412
1248515412Process fee_04.18-06.18.2018_SN_124851D451
4545registration fee_04.18-06.18.2018_SN_124851D2562
1244874654Process fee_04.18-06.18.2018_SN_124487E5412
45JJaregistration fee_04.18-06.18.2018_SN_124487E4515
589581C568Process fee_04.18-06.18.2018_SN_589581CF4514
V156892018965registration fee_04.18-06.18.2018_SN_V15689G4526

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

Table 3
Serial numberinvoice numberdescriptioncustomeramount
12352512RD000451Process fee_04.18-06.18.2018_SN_123525A5245
12MD000541registration fee_04.18-06.18.2018_SN_123525A5648
12RD000457Process fee_04.18-06.18.2018_SN_123525A5647
12RC000548Process fee_04.18-06.18.2018_SN_123525A5475
12654212RD000452Process fee_04.18-06.18.2018_SN_126542B5415
12MD000542registration fee_04.18-06.18.2018_SN_126542B4512
12456212RD000453Process fee_04.18-06.18.2018_SN_124562C5541
12MD000543registration fee_04.18-06.18.2018_SN_124562C412
12485112RD000454Process fee_04.18-06.18.2018_SN_124851D451
12MD000544registration fee_04.18-06.18.2018_SN_124851D2562
12448712RD000455Process fee_04.18-06.18.2018_SN_124487E5412
12MD000545registration fee_04.18-06.18.2018_SN_124487E4515
589581C12RD000456Process fee_04.18-06.18.2018_SN_589581CF4514
V1568912MD000546registration fee_04.18-06.18.2018_SN_V15689G4526

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

any assistance will be greatly appreciated !
 
Did you modify the data as I suggested, in the Serial Number column for Table 2 and Table 3? If not, then this approach will not work.



This is what I get:

Code:
S/N    Proc fee    Reg fee
123525     5,417          5,648 
126542     5,415          4,512 
124562     5,541          412 
124851     451          2,562 
124487     5,412          4,515 
589581C     4,514          -   
V15689     -            4,526

when Table 3 looks like this:
Code:
Table 3                
S/N    invoice number    description                    cust    amount 
123525    12RD000451    Process fee_04.18-06.18.2018_SN_123525        A     5,245 
123525    12MD000541    registration fee_04.18-06.18.2018_SN_123525    A     5,648 
123525    12RD000457    Process fee_04.18-06.18.2018_SN_123525        A     5,647 
123525    12RC000548    Process fee_04.18-06.18.2018_SN_123525        A     5,475 
126542    12RD000452    Process fee_04.18-06.18.2018_SN_126542        B     5,415 
126542    12MD000542    registration fee_04.18-06.18.2018_SN_126542    B     4,512 
124562    12RD000453    Process fee_04.18-06.18.2018_SN_124562        C     5,541 
124562    12MD000543    registration fee_04.18-06.18.2018_SN_124562    C     412 
124851    12RD000454    Process fee_04.18-06.18.2018_SN_124851        D     451 
124851    12MD000544    registration fee_04.18-06.18.2018_SN_124851    D     2,562 
124487    12RD000455    Process fee_04.18-06.18.2018_SN_124487        E     5,412 
124487    12MD000545    registration fee_04.18-06.18.2018_SN_124487    E     4,515 
589581C    12RD000456    Process fee_04.18-06.18.2018_SN_589581C        F     4,514 
V15689    12MD000546    registration fee_04.18-06.18.2018_SN_V15689    G     4,526


I did try a lot of modifications...

and I have the formula as: SUMPRODUCT('Lease-Sales'!$G$462:$G$579*ISNUMBER(FIND(""&"RD"&"";'Lease-Sales'!$B$462:$B$579))-'Lease-Sales'!$G$462:$G$579*ISNUMBER(FIND(""&"RC"&"";'Lease-Sales'!$B$462:$B$579));('Lease GP April'!$B3='Lease-Sales'!$A$462:$A$579);(C$3=LEFT('Lease-Sales'!$D$462:$D$579;LEN(C$3))))

it came back as "0"

perhaps the formula is wrong?

could you send me your formula?
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
I did try a lot of modifications...

and I have the formula as: SUMPRODUCT('Lease-Sales'!$G$462:$G$579*ISNUMBER(FIND(""&"RD"&"";'Lease-Sales'!$B$462:$B$579))-'Lease-Sales'!$G$462:$G$579*ISNUMBER(FIND(""&"RC"&"";'Lease-Sales'!$B$462:$B$579));('Lease GP April'!$B3='Lease-Sales'!$A$462:$A$579);(C$3=LEFT('Lease-Sales'!$D$462:$D$579;LEN(C$3))))

it came back as "0"

perhaps the formula is wrong?

could you send me your formula?

I think I have managed to get the formula to work on another sheet as it indicated the same number, but on the original sheet, the same formula returns with all "0"

And how about the process cost and registration cost?

Do you also get the result as you wanted?
 
Upvote 0

Forum statistics

Threads
1,214,992
Messages
6,122,631
Members
449,095
Latest member
bsb1122

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