General Ledger Code Format

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
779
Office Version
  1. 365
Hi,

how can format gl account number in excel

when typing 60320028500500 to 603200-28-500-500


thanks,
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
I did that but my vlookup function will not work once i do that.

thanks.
 
Upvote 0
The Format will only work if it's stored as a number and VLOOKUP will only work if both the lookup value and lookup array are the same format.

Enter =TYPE(A1) where A1 is the cell reference for the GL account number cell. It should show a 1 to indicate it's a number.
Now try the same for any of the cells against which your doing the VLOOKUP. I suspect it gives a 2 to indicate it's a text so VLOOKUP will never work.
 
Upvote 0
Maybe something like this. Assumes the GL numbers in the lookup table are text.

Book1
ABCDE
1GLDataLookup GL456216-12-555-689
2456216-12-551-2561Data2
3456216-12-555-6892
4456161-25-556-2293
5589161-25-556-2274
Sheet2
Cell Formulas
RangeFormula
E2E2=VLOOKUP(TEXT($E$1,"000000-00-000-000"),$A$2:$B$5,2,0)
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,733
Members
448,987
Latest member
marion_davis

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