Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 193
Default Vlookup or If Statement?

I have three worksheets. One is where I enter all my employee data, the
second is a template which is automatically populated when I input the
employee name in the third sheet. Also, the third sheet contains a list of
employee names and a macro that will automatically populate and print the
template when I put an "X" in the column next to the employee name. So if I
wanted to print twenty specific employee templates, I can check off the
twenty that I need to print.

Now my problem is, not all employees have the same data. For example, some
employees are paid on a weekly basis, some bi-weekly and some monthly. In my
employee datasheet, there are 3 columns to input this information and only
one column is filled in. Rather than to have my template show weekly,
bi-weekly and monthly, I want to show just weekly if the employee is paid
weekly, or just show bi-weekly etc. Is there anyway to tell excel to look in
those columns for a number, and to show that name (either weekly, bi-weekly
or monthly)?

Hope I am clear. Thanks for any help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
LT LT is offline
external usenet poster
 
Posts: 25
Default Vlookup or If Statement?

On May 3, 5:07 pm, Confused
wrote:
I have three worksheets. One is where I enter all my employee data, the
second is a template which is automatically populated when I input the
employee name in the third sheet. Also, the third sheet contains a list of
employee names and a macro that will automatically populate and print the
template when I put an "X" in the column next to the employee name. So if I
wanted to print twenty specific employee templates, I can check off the
twenty that I need to print.

Now my problem is, not all employees have the same data. For example, some
employees are paid on a weekly basis, some bi-weekly and some monthly. In my
employee datasheet, there are 3 columns to input this information and only
one column is filled in. Rather than to have my template show weekly,
bi-weekly and monthly, I want to show just weekly if the employee is paid
weekly, or just show bi-weekly etc. Is there anyway to tell excel to look in
those columns for a number, and to show that name (either weekly, bi-weekly
or monthly)?

Hope I am clear. Thanks for any help.


Sorry I can't be of much help here, (my time is getting short) but it
sounds like you could use a Match and Index function.

The internal help file for both Match and Index is really good and
better laid out then I could for you here.

-LT

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,886
Default Vlookup or If Statement?

Hi

If you could use a single column instead of three to determine the
frequency of pay it would be easier.
Have one column, and either enter 1 or 2 or M.
Then, assuming it was column F holding this data, you could use
something like
=IF(F2="","",IF(F2=1,"Weekly",IF(F2=2,"Bi-Weekly","Monthly)))
--
Regards

Roger Govier


"Confused" wrote in message
...
I have three worksheets. One is where I enter all my employee data,
the
second is a template which is automatically populated when I input the
employee name in the third sheet. Also, the third sheet contains a
list of
employee names and a macro that will automatically populate and print
the
template when I put an "X" in the column next to the employee name.
So if I
wanted to print twenty specific employee templates, I can check off
the
twenty that I need to print.

Now my problem is, not all employees have the same data. For example,
some
employees are paid on a weekly basis, some bi-weekly and some monthly.
In my
employee datasheet, there are 3 columns to input this information and
only
one column is filled in. Rather than to have my template show weekly,
bi-weekly and monthly, I want to show just weekly if the employee is
paid
weekly, or just show bi-weekly etc. Is there anyway to tell excel to
look in
those columns for a number, and to show that name (either weekly,
bi-weekly
or monthly)?

Hope I am clear. Thanks for any help.



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
Vlookup with if statement HTC Excel Discussion (Misc queries) 0 November 30th 06 05:58 PM
If Statement / VLookup pb Excel Worksheet Functions 2 November 25th 06 01:16 AM
Vlookup with If Statement Shams Excel Worksheet Functions 3 October 16th 06 07:52 PM
If Statement with VLookup Shams Excel Worksheet Functions 3 October 16th 06 07:16 PM
If statement with Vlookup Marty Excel Worksheet Functions 1 March 30th 06 04:15 PM


All times are GMT +1. The time now is 06:14 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"