Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-18-2017, 09:28 AM
buddah buddah is offline Quickly Adding information in a new column Windows 7 64bit Quickly Adding information in a new column Office 2010 64bit
Novice
Quickly Adding information in a new column
 
Join Date: Jul 2017
Posts: 3
buddah is on a distinguished road
Default Quickly Adding information in a new column

So There are two different styles of general ledger programs being used. I need to quickly and easily Reference numbers in a column and depending on what it is put another number in the last column.



So for example the xlsx file has these columns

ACCT NO | Description | Ammount
02-206300 Savings 400.00

And i need to add a 3-0-0-2310 So it looks like this

ACCT NO | Description | Amount | New Acct NO
02-206300 Savings 400.00 3-0-0-2310

There are 800 Different account numbers with new account numbers and multiple sheets that need to be processed with these numbers. I cant think of a way to quickly do this.

I have a key setup with the original number and the new number all together
Reply With Quote
  #2  
Old 07-18-2017, 10:12 AM
NBVC's Avatar
NBVC NBVC is offline Quickly Adding information in a new column Windows 10 Quickly Adding information in a new column Office 2013
The Formula Guy
 
Join Date: Mar 2012
Location: Mississauga, CANADA
Posts: 215
NBVC will become famous soon enoughNBVC will become famous soon enough
Default

Have you looked into using the VLOOKUP function.
Reply With Quote
  #3  
Old 07-18-2017, 11:48 AM
buddah buddah is offline Quickly Adding information in a new column Windows 7 64bit Quickly Adding information in a new column Office 2010 64bit
Novice
Quickly Adding information in a new column
 
Join Date: Jul 2017
Posts: 3
buddah is on a distinguished road
Default

Quote:
Originally Posted by NBVC View Post
Have you looked into using the VLOOKUP function.
It will kinda do what i want to do but its a little messy. One thing i noticed when i copied down the table array changed as well as the lookupvalue is there a way to get just the lookupcalue to change?

Is there any other ideas out here?
Reply With Quote
  #4  
Old 07-18-2017, 12:35 PM
ArviLaanemets ArviLaanemets is offline Quickly Adding information in a new column Windows 8 Quickly Adding information in a new column Office 2016
Expert
 
Join Date: May 2017
Posts: 874
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

a) Use absolute references for account reference table. P.e. you have on separate sheet Accounts a table with headers Account and NewAccount in A1 and B1, and data filled down to row 600. Now when on some another sheet with account numbers in column A you want to get new account into some other colum on row 2, the formula will be:
=VLOOKUP($A2,Accounts!$A$2:$B$600,2,0)

b) Define all tables as Tables (select any single cell in datarange; Insert>Table; check "My table has headers"; name the defined table). P.e. with table tAccounts defined on sheet Accounts, and calculating new account number in another defined Table with old account in column AccountNo, for any Table row the formula will be:
=VLOOKUP([@AccountNo],tAccounts,2,0).

Both formulas on coping down adjust the reference to old account, but leave the reference to accounts table unchanged.
Reply With Quote
  #5  
Old 07-19-2017, 08:55 AM
buddah buddah is offline Quickly Adding information in a new column Windows 7 64bit Quickly Adding information in a new column Office 2010 64bit
Novice
Quickly Adding information in a new column
 
Join Date: Jul 2017
Posts: 3
buddah is on a distinguished road
Default

Quote:
Originally Posted by ArviLaanemets View Post
a) Use absolute references for account reference table. P.e. you have on separate sheet Accounts a table with headers Account and NewAccount in A1 and B1, and data filled down to row 600. Now when on some another sheet with account numbers in column A you want to get new account into some other colum on row 2, the formula will be:
=VLOOKUP($A2,Accounts!$A$2:$B$600,2,0)

b) Define all tables as Tables (select any single cell in datarange; Insert>Table; check "My table has headers"; name the defined table). P.e. with table tAccounts defined on sheet Accounts, and calculating new account number in another defined Table with old account in column AccountNo, for any Table row the formula will be:
=VLOOKUP([@AccountNo],tAccounts,2,0).

Both formulas on coping down adjust the reference to old account, but leave the reference to accounts table unchanged.
I was able to define the tables and that works for me. This is a basic solution. Thanks for your help everyone.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
insert Date picker after adding a new column PeterDC Word 0 12-10-2015 03:40 AM
adding up from another column after match MorriSiege Excel 0 04-28-2015 09:13 AM
how to enter information to outline code column ketanco Project 3 02-04-2015 03:07 PM
Adding information from a array into a table jcorti Word VBA 4 01-10-2014 10:58 PM
Adding a Check Box column gogo Outlook 3 02-24-2013 09:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:05 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft