A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

macro to compare multiple cells to determine value



 
 
Thread Tools Display Modes
  #1  
Old October 7th, 2005, 02:46 AM
macrodummy
external usenet poster
 
Posts: n/a
Default macro to compare multiple cells to determine value

I need help building a macro that would take the # of hours worked and
compare it to the list below to determine cost of for Ind and Family.

# of Hrs Individual Family
40 $37.71 $83.62
38 $41.72 $92.51
36 $45.73 $101.40
35 $47.73 $105.84
34 $49.73 $110.28
32 $53.74 $119.17
30 $57.75 $128.06
28 $61.76 $136.00
26 $65.77 $145.83
24 $69.78 $154.72
22 $73.78 $163.61
20 $77.79 $172.49


  #2  
Old October 7th, 2005, 03:39 AM
Myrna Larson
external usenet poster
 
Posts: n/a
Default

There's something missing from your question. Can you try again? I don't see
anything very complicated about your data. Perhaps a simple formula will work.

On Thu, 6 Oct 2005 18:46:03 -0700, "macrodummy"
wrote:

I need help building a macro that would take the # of hours worked and
compare it to the list below to determine cost of for Ind and Family.

# of Hrs Individual Family
40 $37.71 $83.62
38 $41.72 $92.51
36 $45.73 $101.40
35 $47.73 $105.84
34 $49.73 $110.28
32 $53.74 $119.17
30 $57.75 $128.06
28 $61.76 $136.00
26 $65.77 $145.83
24 $69.78 $154.72
22 $73.78 $163.61
20 $77.79 $172.49

  #3  
Old October 9th, 2005, 01:21 PM
macrodummy
external usenet poster
 
Posts: n/a
Default

Hi Myrna,

There are 2 parts to this sheet.
Name Hours Wkd (100% = 500) Eligible Weekly Hours % of 40 Hrs Emp Cost
Individual Emp Cost Family

This part is working fine - I download info from ADP payrool system to
determine if employee is eligible for benifits. (only those working over 20
hrs/wk are eligible)

I need to formulate the 2 cost columns to look at the weekly hours column,
compare it to the table below and return the cost accociated with the # of
hours worked from this table.


% of Hours# of Hrs Individual Family
100.0% 40 $37.71 $83.62
95.0% 38 $41.72 $92.51
90.0% 36 $45.73 $101.40
87.5% 35 $47.73 $105.84
85.0% 34 $49.73 $110.28
80.0% 32 $53.74 $119.17
75.0% 30 $57.75 $128.06
70.0% 28 $61.76 $136.00
65.0% 26 $65.77 $145.83
60.0% 24 $69.78 $154.72
55.0% 22 $73.78 $163.61
50.0% 20 $77.79 $172.49




"Myrna Larson" wrote:

There's something missing from your question. Can you try again? I don't see
anything very complicated about your data. Perhaps a simple formula will work.

On Thu, 6 Oct 2005 18:46:03 -0700, "macrodummy"
wrote:

I need help building a macro that would take the # of hours worked and
compare it to the list below to determine cost of for Ind and Family.

# of Hrs Individual Family
40 $37.71 $83.62
38 $41.72 $92.51
36 $45.73 $101.40
35 $47.73 $105.84
34 $49.73 $110.28
32 $53.74 $119.17
30 $57.75 $128.06
28 $61.76 $136.00
26 $65.77 $145.83
24 $69.78 $154.72
22 $73.78 $163.61
20 $77.79 $172.49


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to delete blank cells across multiple columns? SamFunMail Worksheet Functions 2 September 1st, 2005 07:05 AM
Macro for multiple charts JS Worksheet Functions 1 November 19th, 2004 03:44 AM
Copying Multiple Cells to One Cells Chas General Discussion 3 August 9th, 2004 07:13 AM
editing macro to pull multiple cells instead of a single cell spence Worksheet Functions 1 May 16th, 2004 04:25 AM


All times are GMT +1. The time now is 03:38 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.