#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Account codes

Working with a cash worksheet that I list deposits and expenditures. Need to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key words (in
some cases multiple key words) to trigger an accounting code number in the
appropriate cell? For instance Account code '3' may include rent, hotel,
housekeeping, utilities etc. Would like the formula to check for any of
those words and put '3' in the cell recording the relevant accounting code.

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 527
Default Account codes



"Gary" wrote:

Working with a cash worksheet that I list deposits and expenditures. Need to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key words (in
some cases multiple key words) to trigger an accounting code number in the
appropriate cell? For instance Account code '3' may include rent, hotel,
housekeeping, utilities etc. Would like the formula to check for any of
those words and put '3' in the cell recording the relevant accounting code.


Hello Gary

A multiple IF statement might do.
if(or(a2="Rent","Housekeeping","Utilities"),3,if(o r(a2="Salaries","Expenses"),2))

This is limited to seven IF statements so that if this is not enough create
a list of deposits and expenitures and put the ac# in the next column and use
a Lookup formula

Regards Peter
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Account codes

Create a 2 column lookup table with all the key words in the left column and
the code number in the right column. For example:

.......A......................B
1...rent....................3
2...hotel..................3
3...utilities...............3
4...travel.................5
5...meals................5
6...entertainment.....6
7...golf...................1
8...booze...............1a

Then, you can use a formula like this to return the accounting code:

E1 = travel

=VLOOKUP(E1,A1:B8,2,0)


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
Working with a cash worksheet that I list deposits and expenditures. Need
to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key words
(in
some cases multiple key words) to trigger an accounting code number in the
appropriate cell? For instance Account code '3' may include rent, hotel,
housekeeping, utilities etc. Would like the formula to check for any of
those words and put '3' in the cell recording the relevant accounting
code.

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Account codes

I created a lookup table but can't seem to get it to work properly; not
returning accurately.
I go to 'insert function' and select VLOOKUP. For the Lookup_value I am
selection the 'description' column that contains the description of the
entries.
Table_array, I highlight the table that I have created with the associated
codes
Col_index_num, I am a little uncertain about. Have created a number column
in the table array and selected it, but have tried a number of variants;
number column by itself, included the text part of the array............not
really sure what should go there.
The 'Range' value, not sure about it either.

If necessary, I could send a sample of a cash sheet

"T. Valko" wrote:

Create a 2 column lookup table with all the key words in the left column and
the code number in the right column. For example:

.......A......................B
1...rent....................3
2...hotel..................3
3...utilities...............3
4...travel.................5
5...meals................5
6...entertainment.....6
7...golf...................1
8...booze...............1a

Then, you can use a formula like this to return the accounting code:

E1 = travel

=VLOOKUP(E1,A1:B8,2,0)


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
Working with a cash worksheet that I list deposits and expenditures. Need
to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key words
(in
some cases multiple key words) to trigger an accounting code number in the
appropriate cell? For instance Account code '3' may include rent, hotel,
housekeeping, utilities etc. Would like the formula to check for any of
those words and put '3' in the cell recording the relevant accounting
code.

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Account codes

See if this helps:

http://contextures.com/xlFunctions02.html

If you still need help let me know and I'll post an email address where you
can contact me.


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
I created a lookup table but can't seem to get it to work properly; not
returning accurately.
I go to 'insert function' and select VLOOKUP. For the Lookup_value I am
selection the 'description' column that contains the description of the
entries.
Table_array, I highlight the table that I have created with the associated
codes
Col_index_num, I am a little uncertain about. Have created a number
column
in the table array and selected it, but have tried a number of variants;
number column by itself, included the text part of the
array............not
really sure what should go there.
The 'Range' value, not sure about it either.

If necessary, I could send a sample of a cash sheet

"T. Valko" wrote:

Create a 2 column lookup table with all the key words in the left column
and
the code number in the right column. For example:

.......A......................B
1...rent....................3
2...hotel..................3
3...utilities...............3
4...travel.................5
5...meals................5
6...entertainment.....6
7...golf...................1
8...booze...............1a

Then, you can use a formula like this to return the accounting code:

E1 = travel

=VLOOKUP(E1,A1:B8,2,0)


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
Working with a cash worksheet that I list deposits and expenditures.
Need
to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key
words
(in
some cases multiple key words) to trigger an accounting code number in
the
appropriate cell? For instance Account code '3' may include rent,
hotel,
housekeeping, utilities etc. Would like the formula to check for any
of
those words and put '3' in the cell recording the relevant accounting
code.

Thanks








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 273
Default Account codes

Have looked at the web link, printed it out and tried to follow it. Maybe I
haven't properly described what I am trying to do because I really do not see
an example that is relevant (at least that I recognize). May be best to
forward a file to you with the 'lookup' table that I have created, see the
columns of the spreadsheet, to make sure that you can see exactly what I am
looking for and let me know if it is possible.

"T. Valko" wrote:

See if this helps:

http://contextures.com/xlFunctions02.html

If you still need help let me know and I'll post an email address where you
can contact me.


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
I created a lookup table but can't seem to get it to work properly; not
returning accurately.
I go to 'insert function' and select VLOOKUP. For the Lookup_value I am
selection the 'description' column that contains the description of the
entries.
Table_array, I highlight the table that I have created with the associated
codes
Col_index_num, I am a little uncertain about. Have created a number
column
in the table array and selected it, but have tried a number of variants;
number column by itself, included the text part of the
array............not
really sure what should go there.
The 'Range' value, not sure about it either.

If necessary, I could send a sample of a cash sheet

"T. Valko" wrote:

Create a 2 column lookup table with all the key words in the left column
and
the code number in the right column. For example:

.......A......................B
1...rent....................3
2...hotel..................3
3...utilities...............3
4...travel.................5
5...meals................5
6...entertainment.....6
7...golf...................1
8...booze...............1a

Then, you can use a formula like this to return the accounting code:

E1 = travel

=VLOOKUP(E1,A1:B8,2,0)


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
Working with a cash worksheet that I list deposits and expenditures.
Need
to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key
words
(in
some cases multiple key words) to trigger an accounting code number in
the
appropriate cell? For instance Account code '3' may include rent,
hotel,
housekeeping, utilities etc. Would like the formula to check for any
of
those words and put '3' in the cell recording the relevant accounting
code.

Thanks







  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Account codes

Gary

You can post the workbook at one of the hosting sites below.

http://www.freefilehosting.net/
http://savefile.com/

When you have uploaded to that site, post the URL so we could download.


Gord Dibben MS Excel MVP

On Tue, 4 Mar 2008 09:19:03 -0800, Gary wrote:

Have looked at the web link, printed it out and tried to follow it. Maybe I
haven't properly described what I am trying to do because I really do not see
an example that is relevant (at least that I recognize). May be best to
forward a file to you with the 'lookup' table that I have created, see the
columns of the spreadsheet, to make sure that you can see exactly what I am
looking for and let me know if it is possible.

"T. Valko" wrote:

See if this helps:

http://contextures.com/xlFunctions02.html

If you still need help let me know and I'll post an email address where you
can contact me.


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
I created a lookup table but can't seem to get it to work properly; not
returning accurately.
I go to 'insert function' and select VLOOKUP. For the Lookup_value I am
selection the 'description' column that contains the description of the
entries.
Table_array, I highlight the table that I have created with the associated
codes
Col_index_num, I am a little uncertain about. Have created a number
column
in the table array and selected it, but have tried a number of variants;
number column by itself, included the text part of the
array............not
really sure what should go there.
The 'Range' value, not sure about it either.

If necessary, I could send a sample of a cash sheet

"T. Valko" wrote:

Create a 2 column lookup table with all the key words in the left column
and
the code number in the right column. For example:

.......A......................B
1...rent....................3
2...hotel..................3
3...utilities...............3
4...travel.................5
5...meals................5
6...entertainment.....6
7...golf...................1
8...booze...............1a

Then, you can use a formula like this to return the accounting code:

E1 = travel

=VLOOKUP(E1,A1:B8,2,0)


--
Biff
Microsoft Excel MVP


"Gary" wrote in message
...
Working with a cash worksheet that I list deposits and expenditures.
Need
to
add accounting code column with an assigned number dependent on
nature/description of expenditure. Is there a way for certain key
words
(in
some cases multiple key words) to trigger an accounting code number in
the
appropriate cell? For instance Account code '3' may include rent,
hotel,
housekeeping, utilities etc. Would like the formula to check for any
of
those words and put '3' in the cell recording the relevant accounting
code.

Thanks








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using macros in a second user account Ken W Excel Discussion (Misc queries) 3 November 13th 06 05:20 PM
Can a service account be embedded in Workbook so that by default the macros are run with service account credentials and not the user credentials??? Divya Sanam Excel Discussion (Misc queries) 0 July 20th 06 05:15 PM
Statement of Account Lou Excel Worksheet Functions 4 December 18th 05 05:08 AM
Home account R.Culley Excel Worksheet Functions 2 March 31st 05 04:48 PM
Account for Public Holidays POM Excel Discussion (Misc queries) 0 March 2nd 05 11:47 AM


All times are GMT +1. The time now is 02:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"