I must be missing something.
This looks to be a simple VLookup function.
 
You have a sheet that has a list of department/GL codes.
when you enter the department number, use a VLookup() function to retrieve the 
GL Account number.
 
what is the issue? what am I missing? 

Paul
-----------------------------------------
“Do all the good you can,
By all the means you can,
In all the ways you can,
In all the places you can,
At all the times you can,
To all the people you can,
As long as ever you can.” - John Wesley
-----------------------------------------


>________________________________
> From: Bill Roberts <williamclarkrobe...@gmail.com>
>To: excel-macros@googlegroups.com 
>Sent: Thursday, May 22, 2014 1:07 PM
>Subject: $$Excel-Macros$$ Complex cell formulas
>  
>
>
>I have a need for some help with some difficult cell formulas. I have a sheet 
>that requires a Department Code and a General ledger Code. When I enter the 
>Dept Code, I want the GL Code to recognize what I am entering in the Dept Code 
>and place the correct GL Code in its field. This is so I can eliminate looking 
>up each and every GL Code.In the workbook, the first page is the log with 
>codes, second page are the matched account codes, and the third page is the 
>grouped account codes. 
>
>
>For example: if I enter 482 in the Dept Code, I want it to recognize 5862 in 
>the GL Code, or 523 will enter 5370 in GL Code. I need to be able to do this 
>in each row for the Dept Code.
>
>
>I hope this makes sense. Like I said, I group all the codes together so it is 
>hopefully easier to understand. Thanks for the help.
>
>
>
>         
>Method  Merchant Name  Description  Date Pross.  Bldg ID#  Dept Code  Amount  
>G/L Code  Purchaser   
>P-card  SmartStop Storage  Off Site Storage Unit  1/1/14  4  482  $288.00   
>5862  DaLea Snell   
>Invoice  At & T One Net  Telephone  1/1/14  2  523  $75.59   5370  DaLea Snell 
>  
>P-card  Jim Ellis Automotive  Vehicle Maintenance  1/2/14  2  214  $600.36   
>5772  Bill Roberts   
>P-card  Home Depot  Parts  1/6/14  2  320  $21.50   5860  Bill Roberts   
>P-card  Lowes  Parts  1/7/14  2  320  $28.27   5860  Bill Roberts   
>P-card  Staples  Office Supplies  1/7/14  1  521  $50.31   5200  Bill Roberts  
> 
>Invoice  Fayette Printing  Schedule Cards  1/8/14  2  521  $1,203.46   5200  
>DaLea Snell   
>P-card  Jim Ellis Automotive  Spare Key  1/8/14  2  214  $31.91   5772  Bill 
>Roberts   
>P-card  Home Depot  Parts  1/8/14  2  221  $56.11   5860  Bill Roberts   
>P-card  Wal Mart  Good Bye Bag for Tou  1/9/14  1  512  $21.56   5400  DaLea 
>Snell   
>P-card  The Olive Garden  Fairwell Luncheon  1/9/14  1  512  $200.17   5400  
>DaLea Snell   
>P-card  Atlanta Light Bulb  Ballasts  1/10/14  2  221  $88.11   5860  Bill 
>Roberts   
>P-card  Staples  Parts  1/10/14  2  221  $21.37   5860  Bill Roberts   
>P-card  Home Depot  Parts  1/10/14  2  221  $14.03   5860  Bill Roberts   
>P-card  Paypal Gentry Forge  Not Sure  1/11/14  4  320  $216.00   5860  Bill 
>Roberts
>
>
>
>  
>
-- 
>Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
>=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
>https://www.facebook.com/discussexcel
> 
>FORUM RULES
> 
>1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
>Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
>quick attention or may not be answered.
>2) Don't post a question in the thread of another member.
>3) Don't post questions regarding breaking or bypassing any security measure.
>4) Acknowledge the responses you receive, good or bad.
>5) Jobs posting is not allowed.
>6) Sharing copyrighted material and their links is not allowed.
> 
>NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
>members are not responsible for any loss.
>--- 
>You received this message because you are subscribed to the Google Groups "MS 
>EXCEL AND VBA MACROS" group.
>To unsubscribe from this group and stop receiving emails from it, send an 
>email to excel-macros+unsubscr...@googlegroups.com.
>To post to this group, send email to excel-macros@googlegroups.com.
>Visit this group at http://groups.google.com/group/excel-macros.
>For more options, visit https://groups.google.com/d/optout.
>
>
>    

-- 
Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s 
=TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ 
https://www.facebook.com/discussexcel

FORUM RULES

1) Use concise, accurate thread titles. Poor thread titles, like Please Help, 
Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get 
quick attention or may not be answered.
2) Don't post a question in the thread of another member.
3) Don't post questions regarding breaking or bypassing any security measure.
4) Acknowledge the responses you receive, good or bad.
5) Jobs posting is not allowed.
6) Sharing copyrighted material and their links is not allowed.

NOTE  : Don't ever post confidential data in a workbook. Forum owners and 
members are not responsible for any loss.
--- 
You received this message because you are subscribed to the Google Groups "MS 
EXCEL AND VBA MACROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to excel-macros+unsubscr...@googlegroups.com.
To post to this group, send email to excel-macros@googlegroups.com.
Visit this group at http://groups.google.com/group/excel-macros.
For more options, visit https://groups.google.com/d/optout.

Reply via email to