Changing Names in Formula

BriCris

New Member
Joined
May 30, 2017
Messages
11
I'm looking for help setting up a formula that will change with manager names from the helper page. The formula need to work when there is More or less managers ie. some months we will have 4 managers and others we will only have 2 managers.

I have tried using =INDIRECT("'" & G16 & "'!" & G18) that will pull the tab Helper!D2 to get names and that works but I don't know how to make the formula that will work with more or less managers so that I don't have to change 100s of formulas every month.

Tables/Tabs

Table
[TABLE="width: 500"]
<tbody>[TR]
[TD="align: center"]Manager Name
[/TD]
[TD="align: center"]LTR Remarks[/TD]
[TD="align: center"]LTR Score[/TD]
[/TR]
[TR]
[TD="align: center"]Manager One[/TD]
[TD="align: center"]Very Helpful.
[/TD]
[TD="align: center"]7[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Two[/TD]
[TD="align: center"]Very Friendly.
[/TD]
[TD="align: center"]8[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Three[/TD]
[TD="align: center"]Excellent Service.[/TD]
[TD="align: center"]6[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Four.[/TD]
[TD="align: center"]Not Happy.[/TD]
[TD="align: center"]2[/TD]
[/TR]
</tbody>[/TABLE]

Formula:
HTML:
   =SUMPRODUCT(--(INDIRECT(H$3   &"[Manager Name]")="Manager One)--(INDIRECT(H$3 &"[Manager Name]")="Manager Two")--(INDIRECT(H$3 &"[Manager Name]")="Manager Three"),--(INDIRECT(H$3 & "[LTR   Score]")<=7),--(LEN(INDIRECT(H$3 & "[LTR   Remarks]"))-LEN(SUBSTITUTE((UPPER(INDIRECT(H$3 & "[LTR   Remarks]"))),UPPER($A22),"")))/LEN($A22))

Tab with Formula:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Neg Remarks
[/TD]
[TD="align: center"]LTR
[/TD]
[TD="align: center"]Rep Sat
[/TD]
[TD="align: center"]Apr_2017 ($M$3)
[/TD]
[/TR]
[TR]
[TD="align: center"](Blank)
[/TD]
[TD="align: center"](Formula from above)
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Helpful (A22)
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]Friendly
[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]

Helper Page:

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD="align: center"]Manager Names
[/TD]
[/TR]
[TR]
[TD="align: center"]Manager One
[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Two
[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Three
[/TD]
[/TR]
[TR]
[TD="align: center"]Manager Four
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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