Hours work out


"Excel VBA Help"

 


Play Friv Now - Play Friv Games
Go Back   The Code Cage Forums > Microsoft Topics > Microsoft Excel Forum
Our Info Pages:-
The Code Cage - Microsoft Office help

Notices

Microsoft Excel Forum Members Post questions in this forum if they are related to using Microsoft Excel, this includes Worksheet Functions, Excel VBA Programming, Simple Macro Code & Charting, Excel formula etc.

 
 
Thread Tools Rate Thread Display Modes
  #1  
Old 20th May 2014, 15:31
mat_hump3's Avatar
mat_hump3 mat_hump3 is offline
Junior Member
MS Office Version: Ms Office 2010
MS Office Skill Level: Proficient with Excel
 
Join Date: Oct 2010
Location: Herts
Age: 29
Posts: 33
Posts Per Day: 0.01
My Top Tip Count: 0
Thanks to others: 4
Thanked 0 Times in 0 Posts
Reputation: 10 (8) mat_hump3 is on a distinguished road
Default Hours work out
     Excel: General   


------ Register to get rid of these "In Post" ads! ------

Category: Excel: General   

Guys

I have a Spread sheet (Attached) that we use to record Labour and materials against a particular Job. On the Labour Page each week i update this with the total labour number. I have Have to work out how much each person has has earn against said job and enter the amount.

I would like to just select there name from a drop down enter the amount of hours the have worked and it automatically multiplies the hours by the hourly rate.

Now i have the drop down list. i just don't know how to set it up so that each person in the list has a set hourly rate.

Any help would be great
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.



The Code Cage Advertisment
Advertisement
  #2  
Old 21st May 2014, 07:24
RoyUK's Avatar
RoyUK RoyUK is offline
Administrator
Solution Centre Professional
MS Office Version: MS Office 2003, 2007, 2010
MS Office Skill Level: Proficient with MS Office
 
Join Date: Nov 2008
Location: Derbyshire, UK
Posts: 2,707
Posts Per Day: 0.81
My Top Tip Count: 4
Thanks to others: 2
Thanked 195 Times in 193 Posts
Reputation: 3320 (70) RoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond reputeRoyUK has a reputation beyond repute
4 Top Tips
England
Default Re: Hours work out

------ Register to get rid of these "In Post" ads! ------


Where is the list of hourly rates?
__________________
Hope that helps, RoyUK
For tips & examples visit free excel help
DatabaseForm
About me



  #3  
Old 21st May 2014, 09:38
Pete_UK's Avatar
Pete_UK Pete_UK is offline
Solution Centre Professional
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: Proficient with Excel
 
Join Date: Mar 2009
Location: Warrington, England
Age: 65
Posts: 640
Posts Per Day: 0.20
My Top Tip Count: 0
Thanks to others: 8
Thanked 135 Times in 134 Posts
Reputation: 2624 (41) Pete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond repute
Great_Britain
Default Re: Hours work out

------ Register to get rid of these "In Post" ads! ------


In your source sheet you should insert a new column C, and then next to each name you should list the appropriate hourly rate that you want to charge for each person.

Then in your Labour sheet you can have this formula in cell D7:

My Formula:
=IFERROR(C7*VLOOKUP(B7,Source!B:C,2,0),0)


and then copy this down.

Hope this helps.

Pete



The Code Cage Advertisment
Advertisement
  #4  
Old 21st May 2014, 10:40
Hennie Neuhoff's Avatar
Hennie Neuhoff Hennie Neuhoff is offline
Junior Member
MS Office Version: Ms Office 2010
MS Office Skill Level: Proficient with Excel
 
Join Date: Jun 2009
Location: South Africa
Age: 65
Posts: 116
Posts Per Day: 0.04
My Top Tip Count: 0
Thanks to others: 69
Thanked 1 Time in 1 Post
Reputation: 15 (10) Hennie Neuhoff is on a distinguished road
South_Africa
Default Re: Hours work out

------ Register to get rid of these "In Post" ads! ------


Mat_hump3
Attached is your file which you can also try. Please note that you must save the file as "Macro Enabled Workbook"
Attached Files To view attachments in this forum your post count must be 2 or greater. You currently have 0 posts.



  #5  
Old 21st May 2014, 14:24
mat_hump3's Avatar
mat_hump3 mat_hump3 is offline
Junior Member
MS Office Version: Ms Office 2010
MS Office Skill Level: Proficient with Excel
 
Join Date: Oct 2010
Location: Herts
Age: 29
Posts: 33
Posts Per Day: 0.01
My Top Tip Count: 0
Thanks to others: 4
Thanked 0 Times in 0 Posts
Reputation: 10 (8) mat_hump3 is on a distinguished road
Default Re: Hours work out

------ Register to get rid of these "In Post" ads! ------


Quote:
Originally Posted by Pete_UK View Post

In your source sheet you should insert a new column C, and then next to each name you should list the appropriate hourly rate that you want to charge for each person.

Then in your Labour sheet you can have this formula in cell D7:

My Formula:
=IFERROR(C7*VLOOKUP(B7,Source!B:C,2,0),0)


and then copy this down.

Hope this helps.

Pete

Pete it work perfect

But i have one Problem which i did not for see

Some contractors have two rates !

So i will need to create another column to indicate what Rate they are on A or B

so if i put a A in the rate column then it takes the hour rate from Column C on the source page if i put a B in the rate column then it will usr the rate set um in column D of the source page

Thanks very much for you help



  #6  
Old 21st May 2014, 17:31
Pete_UK's Avatar
Pete_UK Pete_UK is offline
Solution Centre Professional
MS Office Version: MS Office 2003, 2007
MS Office Skill Level: Proficient with Excel
 
Join Date: Mar 2009
Location: Warrington, England
Age: 65
Posts: 640
Posts Per Day: 0.20
My Top Tip Count: 0
Thanks to others: 8
Thanked 135 Times in 134 Posts
Reputation: 2624 (41) Pete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond reputePete_UK has a reputation beyond repute
Great_Britain
Default Re: Hours work out

------ Register to get rid of these "In Post" ads! ------


Okay, every contractor will have at least one rate, so put those rates in column C of the source sheet and use column D for those contractors which have a second rate. Then assuming that you use D7 on the labour sheet to indicate the rate, the formula (now in E7) can become:

My Formula:
=IFERROR(C7*VLOOKUP(B7,Source!B:D,2+(D7="B"),0),0)


Note that you don't have to indicate rate "A" explicitly - this will be assumed to apply unless you put "B" in D7.

Hope this helps.

Pete

like this post: + 4 Reputation


The Code Cage Advertisment
Advertisement
 
The Code Cage at Facebookhe Code Cage at Twitter


Tags
hours, work

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

The Code Cage Affilliates



http://www.thecodecage.com/forumz tested by McAfee Security http://www.thecodecage.com/forumz tested by McAfee Security

All times are GMT +1. The time now is 05:22.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Template-Modifications by TMS
No part of this board, functionality or creatives may be copied or reproduced either in part or full without the express permission of The Code Cage Team.
Copyright ©2008 - , Simon lloyd.
We are not associated with nor employed by Microsoft in any way, we simply provide resources!
All MS office icons are registered trademarks of the application they represent and are used with permission from Microsoft
UA-8135493-1
Cultural Forum | Study at Malaysian University
X vBulletin 3.8.7 Debug Information
  • Page Generation 0.18677 seconds
  • Memory Usage 6,519KB
  • Queries Executed 18 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footerEnd
  • (1)ad_footerStart
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_headerEnd
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_leftcolumn_code
  • (1)ad_navbar_below
  • (3)ad_postbit_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)helpful_answers
  • (1)helpfulanswers_javascript
  • (1)navbar
  • (3)navbar_link
  • (3)navbar_noticebit
  • (52)option
  • (6)post_thanks_box
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (2)postbit_attachment
  • (6)postbit_ctoptip
  • (6)postbit_onlinestatus
  • (36)postbit_reputation
  • (6)postbit_wrapper
  • (1)showthread_changepostsowner_link
  • (1)showthread_extra_fields
  • (1)showthread_quickreply_mrgdp
  • (1)showthread_reason_popup
  • (1)spacer_close
  • (1)spacer_open
  • (1)su_form
  • (2)tagbit
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_datastore.php
  • ./includes/class_hook.php
  • ./awcoding/plugins/awc.php
  • ./awcoding/plugins/ds.php
  • ./awcoding/plugins/ss.php
  • ./includes/functions_notice.php
  • ./mobiquo/smartbanner.php
  • ./mobiquo/include/classTTConnection.php
  • ./mobiquo/smartbanner/head.inc.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/vbatags.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php
  • ./includes/functions_misc.php 

Hooks Called:
  • init_startup
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_check_criteria
  • notices_noticebit
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • helpfulanswers_showthreadorpost
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • helpfulanswers_show_normal
  • reputation_power
  • reputation_image
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • error_fetch
  • tag_fetchbit
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete