Find Text, Replace Value Adjacent to Found Text, Replace with Formula

NeilATaylor

Board Regular
Joined
Aug 7, 2007
Messages
185
Hi
I have a sheet of data where the same account needs to be adjusted, the monotony of the same adjustment over and over again is doing my head in!!!!
There are 50 or more companies on this trial balance, which doesn't balance, because of an account that refuses to update (from our finance system - unfixable at this moment).
I have to change the account (8150 - Intercompany Account) myself.

Here is what the sheet looks like:
TRIAL BALANCE 010208.xls
BCDEFG
1099Company 1
11007290 - Orig Posting Bank Cd0.000.20
11017316 - SL owed by PPPP2,014,524.600.00
11027800 - Stock & WIP0.000.11
11038150 - DON'T USE: AUTOMATIC Intercompany A/C0.001,690,862.89
11048176 - Manual Intercompany Account (S with G)1,645.830.00
11058706 - Provision for Merged Accounts0.000.02
11068800 - Accruals0.050.00
11079203 - LOANS MASTER LOAD ACCOUNT0.300.00
11089702 - Cumulative Net Surplus/Deficit0.00187,392.96
11099703 - Prior Year Retained Earnings8,016.000.00
11109707 - Revenue Reserves0.0016,565.13
11119755 - Corporation Tax Payable0.000.23
1112Total 59:2,024,186.781,894,821.54-129,365.24
1113
1114Company 2
11154038 - Stationery169.210.00
11164043 - Sundry Management56,250.000.00
11174614 - Allocations New Business Development213,583.670.00
11185600 - Abortive Fees600.000.00
11196304 - Prop Under Cons Cost7,005.760.00
11208150 - DON'T USE: AUTOMATIC Intercompany A/C0.009,380,253.73
11218176 - Manual Intercompany Account (S with G)0.00587.75
11228658 - 1st Tranche Marketing & Legal587.500.00
11238675 - Shortlife Scheme Retention0.001,349.14
11248750 - Input VAT105.000.00
11259702 - Cumulative Net Surplus/Deficit207,411.440.00
11269703 - Prior Year Retained Earnings0.00209,488.06
1127Total 60:485,712.589,591,678.689,105,966.10
All


My fix for this is to manually type (in cell E1103 "Interco") +1690862.89+129365.24, which gives the result needed to get the thing to balance, with G1112 equalling zero.
I would really appreciate if someone could get me started on some code for this!
It would require replacing all values in 8150, for each company, with a result that makes the formula in column G (i.e. G1112 and G1127) equal zero.

Thanks in advance
Neil
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Your download/upload recognizes " : " as a column delimiter, rather than treating it as text.

Look in Cell F1103
 
Upvote 0
Thanks for your reply Dan; I was just wondering how this could be fixed? Is it the original report from the Finance System that needs to be changed?

I would be grateful if someone could produce a cope that went along the lines of "find account 8150, adjust by difference between sum column D & E" just for my own learning.

Thanks
Neil
 
Upvote 0
Regards your immediate data, if the data is in cell F1103 you can probably use =trim(F1103).

Disqualifier: I am not a systems guy, but I have asked many questions in my career. The following is based upon my understanding.

Issue
Your upload recognizes the : as a column delimiter. You probably have two (3 if you extract from an (ODBC-Access or BO data warehouse) and each of these provides the opportunity to corrupt the data.

Solution
Talk to IT and ask if you can test a protocol; request that the data be downloaded as text/tab/delimited. Second before uploading into Excel perform a find-and-replace. Replace the : with a ^, < or > or some other character that will not cause the issue. When the data gets to Excel you do a find-and-replace to replace that character with :
 
Upvote 0
Cheers Dan, that seems to make sense. I'm running it by IT, we are going to test it - will let you know if your theory is correct.
 
Upvote 0
Niel

You are using Trail Balance info. This recommendation is an complete protocol for Detail Transactions and AP transactions.

You data appearing in Colunm B, may be stored in column A as text. Thus the Account Number and Description may be conjoined. The recommended protocol can include parsing the data into Col A countaing Account and Col B containg Description. Which might be good for Lookups.

Good Luck.
 
Upvote 0

Forum statistics

Threads
1,214,943
Messages
6,122,369
Members
449,080
Latest member
Armadillos

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