Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Formula in Excel 2000 & 2002

Status
Not open for further replies.

bobnplano

Technical User
Mar 25, 2003
52
US
I use two different computers in my work, one of which has MS Office 2000 on a Windows Vista platform & the other using MS Office 2002 on a Windows XP platform. Here is what I would like to do on both computers:

I have several sub-contractors I must pay and I pay them according to the zip code they work. Most all of those contractors work in counties outside the county they reside in and I pay them a different rate for that. The company I am contracted to sends me a batch report that indicates the rate that I get paid, along with its zip code. I, in turn, have to pay my sub-contractors a different rate based upon zip code. In fact, one contractor has to go so far out of his way that I pay him double for the work in that area & I take a loss on that, but that's a different story. I would like to create a spreadsheet that will allow me to take the batch report & utilize a formula to automatically create the pay for the sub-contractor based upon the zip code he/she works in.

Heres is an example of the statement I receive:

Type of Work My Rate Sub-Cont Zip
Delinquent Interview $9.00 1486-10 76827
Loss Draft $13.00 1486-10 76856
Delinquent Interview $9.00 1486-10 76856
Delinquent Interview $9.00 1486-10 76859
Property Condition $15.00 1486-10 76861
Delinquent Interview $9.00 1486-10 76901
Property Condition $15.00 1486-10 76901
Bankruptcy $11.00 1486-10 76903

From this example I pay my sub-contractor less than these figures based upon the zip code. How can I create a spreadsheet that will automatically calculate my sub-contractor's pay. For instance, my $9.00 rate might be $7.00 for the sub & the $15.00 might be $12.00 etc. It is not necessarily $2.00 or $1.00 less than what I am paid. In fact, the difference could even be more, in the case of the double I have to pay one sub. Given this information, can you give me an idea about how to take this example & perhaps copy & paste it into a spreadsheet already containing the formulas for the examples mentioned, keeping in mind the two different platforms of Excel?

Thanking you in advance,

Bob
 
More info is necessary - What is the rate of pay to "My Rate" in all the zip codes?

You will have to use a lookup table within the spreadsheet, or another sheet to do the calculation.

Do all "Sub-Cont" get the same amount in the same zip if two of them work in the same zip or not?

This old world keeps spinning round - It's a wonder tall trees ain't layin' down
 


The table you posted coud be used as a template for each of your subs.


First you need to specify which subs servied what zips.

Then, you need to establish the rules that apply to each sub/zip.

Then it may be possible to generate a table that could be used to pay your subs.

Keep in mind that you should end up with one table for ALL your sub/zips, from wich you will be able to calculate the amounts.

Skip,
[glasses]Don't let the Diatribe...
talk you to death![tongue]

[glasses]Just traded in my old subtlety...
for a NUANCE![tongue]
 
Skip,

Thanks. I have a total of 8 subs who each work different zip codes but are paid the same rate, with the exception of one (which has the longest distance to travel & a few of his zip codes are paid double). There are numerous zip codes serviced and all in Texas. They are all paid the same rate for the zip codes within the county they live in & all paid the same rate for zip codes outside their own county. None of them work within the same zip code, so assigning a rate to a zip code is basically what I'm trying to do. I was trying to figure out how to formulate a cell that would give the "if zip code is ______ (or between _____ and _____) then next cell (rate) would equal ________". Can this be done? If I can create the formula to place in the column of cells where the rate would go, then I can take the statement & add the formula to those cells & the rate would populate into the next or appropriate cells. Using my initial example above, if I create a column adjacent to the zip code column, can I put a formula based on the zip code (not My Rate - because their rate is not based upon my rate but based upon the zip code & type of work) so that it will calculate or populate their rate into the column? For ex. if zip code is equal to _____ (or between _____ and _____) then cell (sub's rate) equals ______. Can this be done? I know all this can be done manually but I'm trying to establish a template that will allow me to copy my statement & paste it into the template thereby populating a new statement for my subs.

See Excel sample below. When I preview this post it doesn't show which zip codes are in red text & which ones are bold. Suffice it to say some of them are. Can you use this?

Bob

Work Order # Insp Type My Rate Sub Vendor Zip Code Sub Rate Zip Codes Serviced
IN12435322 Delinquent Interview $9.00 1486-10 76437 $8.00 76437 79553
IN12488811 Foreclosure $9.00 1486-10 76448 $8.00 76442 79556
IN12621993 Delinquent Interview $9.00 1486-10 76470 $8.00 76443 79561
IN12382529 Delinquent Interview $9.00 1486-10 76801 $8.00 76444 79562
IN12389101 Bankruptcy $9.00 1486-10 76801 $8.00 76446 79566
IN12131860 Property Condition - No Contact $9.00 1486-10 76821 $8.00 76448 79567
IN12625593 Delinquent Interview $9.00 1486-10 76821 $8.00 76457 79601
IN12622513 Delinquent Interview $9.00 1486-10 76825 $8.00 76463 79602
IN12626285 Delinquent Interview $9.00 1486-10 76825 $8.00 76470 79603
IN12658828 Delinquent Interview $9.00 1486-10 76827 $8.00 76801 79604
IN12621760 Delinquent Interview $9.00 1486-10 76856 $15.00 76802 79605
IN12624313 Delinquent Interview $9.00 1486-10 76856 $15.00 76821 79606
IN12425896 Delinquent Interview $9.00 1486-10 76859 $8.00 76825 79607
IN12639440 Property Condition - No Contact $9.00 1486-10 76861 $8.00 76827 79608
IN12626466 Delinquent Interview $9.00 1486-10 76901 $8.00 76834 79653
IN12637939 Property Condition - No Contact $9.00 1486-10 76901 $8.00 76849
IN12226233 Bankruptcy $9.00 1486-10 76903 $8.00 76853
IN12404049 Property Condition - No Contact $9.00 1486-10 76903 $8.00 76856
IN12625491 Delinquent Interview $9.00 1486-10 76903 $8.00 76857
IN12625767 Delinquent Interview $9.00 1486-10 76903 $8.00 76859
IN12626047 Delinquent Interview $9.00 1486-10 76903 $8.00 76861
IN12626637 Delinquent Interview $9.00 1486-10 76903 $8.00 76870
IN12626805 Delinquent Interview $9.00 1486-10 76903 $8.00 76873
IN12627177 Delinquent Interview $9.00 1486-10 76903 $8.00 76877
IN12632804 Foreclosure $9.00 1486-10 76903 $8.00 76901
IN12658981 Delinquent Interview $9.00 1486-10 76903 $8.00 76903
IN12664959 Delinquent Interview $9.00 1486-10 76903 $8.00 76904
IN12364966 Bankruptcy $9.00 1486-10 76904 $8.00 76905
IN12379646 Delinquent Interview $9.00 1486-10 76904 $8.00 76906
IN12435305 Delinquent Interview $9.00 1486-10 76904 $8.00 76909
IN12436999 Delinquent Interview $9.00 1486-10 76904 $8.00 76933
IN12621517 Delinquent Interview $9.00 1486-10 76904 $8.00 76943
IN12632511 Foreclosure $9.00 1486-10 76904 $8.00 76945
IN12403975 Property Condition - No Contact $9.00 1486-10 76905 $8.00 76950
IN12625088 Delinquent Interview $9.00 1486-10 76943 $15.00 78631
IN12629803 Delinquent Interview $9.00 1486-10 76950 $15.00 78643
IN12445717 Delinquent Interview $9.00 1486-10 78631 $15.00 79501
IN12378961 Delinquent Interview $9.00 1486-10 78643 $15.00 79503
IN12632801 Foreclosure $9.00 1486-10 78643 $15.00 79504
IN12378375 Loss Draft $15.00 1486-10 79501 $13.00 79508
IN12631297 Foreclosure $9.00 1486-10 79510 $8.00 79510
IN12631302 Foreclosure $9.00 1486-10 79510 $8.00 79511
IN12632411 Foreclosure $9.00 1486-10 79510 $8.00 79512
IN12658636 Loss Draft $15.00 1486-10 79553 $13.00 79519
IN12379729 Delinquent Interview $9.00 1486-10 79562 $7.00 79520
IN12385909 Delinquent Interview $9.00 1486-10 79602 $7.00 79525
IN12389425 Bankruptcy $9.00 1486-10 79605 $7.00 79527
79530
79536
Red = In County 79541
Black= Out of County 79546
Bold Black= Far Out 79549
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top