LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Custom Vlookup Function

I have pretty extensive sub programming experience, but I've had only modest
success writing custom functions as they take slightly different parameters.

I have a workbook with several tabs, one for each month (Jan 08, Feb 08,
etc), and an output tab. Each tab contains a report of the total payroll for
each of up to a few hundred employees for that month. I need the output tab
to be a pivot table of sorts, with each employee's name and number in rows
down columns A and B. I want columns C, D, E, and so on, to output the net
payroll for each employee for each month. I have a complex string of a
vlookup that does that already in place, but I have to change the vlookup to
the appropriate month as well as build into it several if(isna()) functions
to return a 0 if a given employee has no payroll in a given month. I would
like to build a custom function that will look something like this:

Function LookupPay(EmployeeNumber as string, MonthTab as string)

I'm having trouble finding the correct syntax that will take the MonthTab as
an imput and use that to designate the correct sheet.

Any help would be greatly appreciated.
 
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
Creating a custom function to interpret another custom engine func Ryan Excel Programming 0 March 3rd 08 07:18 PM
using vlookup in a custom function slug Excel Programming 3 March 15th 07 04:08 PM
Possible -- a custom format on text, similar to a VLOOKUP() function? Randy Harmelink Excel Programming 1 November 3rd 06 12:32 AM
Custom function to simplify vlookup formula John James Excel Programming 3 March 15th 06 09:39 PM
Custom Function VLookup Martin Excel Discussion (Misc queries) 1 March 15th 06 08:32 PM


All times are GMT +1. The time now is 09:32 PM.

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"