Integrating VBA to Solver

Status
Not open for further replies.

panyagak

Active Member
Joined
Feb 24, 2017
Messages
299
hi

I need to solve this formula using Solver and vba.

Pi = Ni^k (power k)

Applied to this example:
1.51 3.69 5.30 (in columns D2, E2, F2 respectively)

Where
Ni represents (1/1.51), (1/3.69),(1/ 5.30), individually .

There are 2 competitors, n.

N = Sum of the 3 Ni(s)

k is derived as:
Log n / Log(n/N).

k is the SUBJECT
OF ITERATION to ENSURE
SUMMATION OF THE DERIVED 3 Pi=1.00.

Maximum iterations=100.

Am new to using Solver and integrating vba to it to a large Range of cells, say D2:F850

help out

regards
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Duplicate VBA Iterator

Please do not post the same question multiple times. All clarifications, follow-ups, and bumps should be posted back to the original thread.
Per forum rules, posts of a duplicate nature will be locked or deleted (rule 12 here: Forum Rules).
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,224,862
Messages
6,181,461
Members
453,043
Latest member
Sronquest

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top