If bank statement dr or cr add minus or plus accordingly

DIPASGL

New Member
Joined
Oct 26, 2022
Messages
39
Office Version
  1. 2003 or older
Platform
  1. Windows
Hi

I have got below data

AUD 1,768.67 CR
AUD 8,868.68 DR
This data too

Opening balance: AUD 8,868.68 DR
Closing balance: AUD 246,818.44 CR

I want result when dr add minus and when cr add plus .... dr or cr on Data is sometimes on 1st row or 2nd row I mean keep rows . Thanks a lot

1,768.67
-8868.68

-8868.68
246,818.44
currently I am using below formula which is giving me correct amount but have to manually add plus minus depends on dr or cr on left side.

=-MID(LEFT(B5,LEN(B5)-2),4,20)
 

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.
How about
Fluff.xlsm
AB
1
2AUD 1,768.67 CR1,768.67
3AUD 8,868.68 DR-8,868.68
4AUD 246,818.44 CR246,818.44
5AUD 123,246,818.44 DR-123,246,818.44
Master
Cell Formulas
RangeFormula
B2:B5B2=MID(A2,4,LEN(A2)-6)*IF(RIGHT(A2,2)="CR",1,-1)
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,169
Messages
6,123,412
Members
449,098
Latest member
ArturS75

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