GetAFreelancer.com
 
Find projectsSearch
Sign Up | Log in | Top Rated Users | Browse projects | Post Project | RSS feeds | Articles
 

Allocation VBA macro for Excel

  Trial project  Click here to post similar project

Allocation VBA macro for Excel is project number 283227 posted at GetAFreelancer.com. Click here to post your own project.

Closed
(Selected Service Provider AddingDynamics)
Status: Closed
Budget: $30-250
Created: 07/05/2008 at 15:53 EDT
Bidding Ends: 07/15/2008 at 15:53 EDT
Project Creator: JEPPS View PM Post PM
Buyer Rating: (No Feedback Yet)
Description: I may not have time to do this myself, so I'm hoping somebody out there sees this as a small project. The attached spreadsheet also provides a description, as follows:

I need an Excel VBA macro that finds a solution for each row before moving to the next row.
Here's how it should work:
I enter an initial "Guess" and an incrementing value ("Increment") to produce a "Test Value". That Test Value is then tested in the "Solution" column, starting in the first row. The macro does NOT interact directly with the Calculation Table; instead, it acts only on columns A, B, and C. As shown in the attached spreadsheet, the Test Value is used to calculate the values in the Calculation Table (columns E through N). The sum of those values are calculated in column B in "SUM".

The Test Value in the Solution column is incremented (by the positive Increment amount) until the Sum exactly equals the Target.

When Sum = Target, then that row is completed, and the function moves to the next row. The initial Test Value in the next row is the Solution value of the prior row plus the Increment. The process is repeated again until the Sum = Target. The process then moves to the next row and repeats until all the rows are completed.
EXAMPLE of logic:

If Bx < Ax Then
Add Increment to Test_Value [repeat this iteration until Bx is NOT less than Ax]
Else
If Bx = Ax Then
[go to next row and try Solution = (Test_Value + Increment) ]
Else [show "Error" in Solution]

Note: this "Error" should happen only if the Sum value skips over the Target (i.e., it jumps from < Target to > Target). If that happens then that means that I need to try a smaller Increment value.
Additional information submitted:

07/05/2008 at 18:00 EDT:
PLEASE USE "GAF_problem_correct.xls"


Additional files submitted:
GAF_problem_correct.xls
Report violation
Job Type:
  • Excel
  • Visual Basic
Database: (None)
Operating system: MS Windows
Bid count: 9
Average bid: $ 42

 

Related project
 
Telemarketing for NonProfit Donations Request Featured
posted by ram133
Budget: N/A
 

FREE Trial project for new buyers!

 

View Project Message Board     Post Message on Project Message Board
Messages Posted: 0

If you are the project creator or one of the bidders Log in as project creator or bidder for more options

Bid on This Project

Service Providers PMB Bid Delivery Within Time of Bid Provider Rating
makemoney24
View PM Post PM
$ 30 1 day 07-06-2008 10:19 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(1 reviews)
I'm in the US, and can start right now.
maximus91
View PM Post PM
$ 50 0 days 07-06-2008 10:51 10.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/1010.00/10
(1 reviews)
Looking forward to working with you.
excelexpertz
View PM Post PM
$ 65 1 day 07-05-2008 20:47 (No Feedback Yet)
plz view pm for my samples
dito003
View PM Post PM
$ 50 1 day 07-05-2008 22:17 (No Feedback Yet)
Very simple. See PM for details
han888
View PM Post PM
$ 48 1 day 07-05-2008 23:04 (No Feedback Yet)
It's easy... Let's do it..
RUFSOFT
View PM Post PM
$ 33 1 day 07-06-2008 09:54 (No Feedback Yet)
Hi, I can do this for you. Thanks
AddingDynamics
View PM Post PM
$ 30 3 days 07-06-2008 12:33 (No Feedback Yet)
Greetings! FYI, this project should take an hour to complete at the most. Also, I would also suggest having an error message show up near the "Initial Guess" and "Increment" fields, so that you don't have to scroll through the entire workbook to see if there is an error. Thanks, and good luck! Leslie
redwan81
View PM Post PM
$ 30 0 days 07-06-2008 13:32 (No Feedback Yet)
Very interesting problem. I want to solve it for you.
excelsolution
View PM Post PM
$ 45 1 day 07-06-2008 15:29 (No Feedback Yet)
Work completed. Waiting for your bid acceptance to deliver the completed excel.
Bid on This Project

 

[ Web Forms ] [ Secure Forms ] [ Web Development ]

What is GetAFreelancer.com? ( Read about the company )

Buy services with help from our secure escrow system. Companies of any size have used our web services. Find freelance programmers, web designers, copywriters and translators. It's easy, fun and very affordable to outsource your project with our site.

Our escrow feature is developed to protect both buyers and sellers. Web Development doesn't have to be expensive. Outsourcing will cut your expenses by more than 50%. Deposit money and don't purchase until your project is completed. A freelancer is an independent worker, not on salary, hired instead on a project basis.

Find Webmaster Resources and Webmaster Forum. Take a look at Search Engine Submission.