Put amounts for adjacent items based on matching column between two sheets

Omar M

Board Regular
Joined
Jan 11, 2024
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Hi,
I want to match column B in BALANCES sheet with column B in SPLIT COLUMNS sheet , then should brings amount from RESULT column( I) in SPLIT COLUMNS and put in column D for BALANCES sheet and should show calculate in column E by subtraction column C-column D and if the amount in column C bigger than column D then will show SURPLUS word in column F,if the amount in column C smaller than column D then will show DEFICIT word in column F, if the amount in column C equal column D then will show MATCHED word in column F.


Change data (2).xlsm
ABCDEF
1ITEMINVOICE TYPBALANCERESULTFINALCONDITION
21PAID10000
32NOT PAID150000
43CASH BY SAFE21430
54CASH BY BANK300000
BLANACES




Change data (2).xlsm
ABCDEFGHI
1ITEMINVOICE TYPSLMLTLRTBVCEXXPRESULT
21PAID63051.003424.0017816.0015000.00--62443.00
32NOT PAID73759.003798.004400.0013200.00--61161.00
43CASH BY SAFE15000.001020.009450.002000.00--21430.00
54CASH BY BANK32452.003200.0012540.0013000.00--28792.00
SPLIT COLUMNS
Cell Formulas
RangeFormula
I2:I5I2=SUM(C2-D2+E2-F2+G2-H2)



result how should be
Change data (2).xlsm
ABCDEF
1ITEMINVOICE TYPBALANCERESULTFINALCONDITION
21PAID10,000.0062,443.00-52,443.00DEFICIT
32NOT PAID150,000.0061,161.0088,839.00SURPLUS
43CASH BY SAFE21,430.0021,430.000.00MATCHED
54CASH BY BANK300,000.0028,792.00271,208.00SURPLUS
BLANACES
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
Perhaps this (and your sheet name "BALANCES" looks to be misspelled):
Book1
ABCDEF
1ITEMINVOICE TYPBALANCERESULTFINALCONDITION
21PAID10,000.0062,443.00(52,443.00)DEFICIT
32NOT PAID150,000.0061,161.0088,839.00SURPLUS
43CASH BY SAFE21,430.0021,430.00-MATCHED
54CASH BY BANK300,000.0028,792.00271,208.00SURPLUS
BALANCES
Cell Formulas
RangeFormula
D2:D5D2=INDEX('SPLIT COLUMNS'!$I$2:$I$5,MATCH(B2,'SPLIT COLUMNS'!$B$2:$B$5,0))
E2:E5E2=C2-D2
F2:F5F2=IF(C2>D2,"SURPLUS",IF(C2=D2,"MATCHED","DEFICIT"))
 
Upvote 0
Solution

Forum statistics

Threads
1,224,817
Messages
6,181,149
Members
453,021
Latest member
Justyna P

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