loops and ranges help?

Status
Not open for further replies.

leosmessi786

New Member
Joined
Oct 18, 2021
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Thanks everyone in advance for helping me out really appreciate it. This is an interesting assingment and I've tried a lot of different code but I can't get my head around it.

Basically, the table in sheet 1 is pulling in data from sheet 2 and pasting whatever is an underweight or an overweight(10% more or less relative to benchmark).So for example on the second table for Strategy 1 Sector 3 the portfolio weight is 23% greater than the benchmark weight. so that will be pasted onto the sheet 1 in the table. I do this process manually but am trying to code it. I tried a loop that goes through the data on the second table but I can't get my head around it.

If someone could help me that would be awesome thanks!

Sheet 1:


PortfolioPort %BM %Active %% Over
Guideline
Underweight More Than -10% Relative Benchmark Weight
Strategy 1Sector 328.005.0023.0033.00
Strategy 1Sector 531.005.0026.0036.00
Strategy 5Sector 213.000.0013.0023.00
Overweight 10% Plus the Benchmark Weight
Strategy 2Sector 59.0020.00-11.00-31.00
Strategy 4Sector 20.0012.00-12.00-24.00



Sector 1Sector 2Sector 3Sector 4Sector 5
Strategy 17.008.0028.001.0031.00
Benchmark 15.005.005.005.005.00
Strategy 220.0020.0020.0020.009.00
Benchmark 226.0026.0026.0026.0020.00
Strategy 30.000.000.000.000.00
Benchmark 34.004.004.004.004.00
Strategy 40.000.000.000.000.00
Benchmark 40.0012.000.000.000.00
Strategy 50.0013.000.000.000.00
Benchmark 50.000.000.000.000.00
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Duplicate to: VBA looping help

In future, please do not post the same question multiple times. Per Forum Rules (#12), posts of a duplicate nature will be locked or deleted.

In relation to your question here, I have closed this thread so please continue in the linked thread. If you do not receive a response, you can "bump" it by replying to it yourself, though we advise you to wait 24 hours before doing so, and not to bump a thread more than once a day.
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,215,054
Messages
6,122,895
Members
449,097
Latest member
dbomb1414

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