Dynamic update of column in a formula?

jmw1515

New Member
Joined
Jul 12, 2006
Messages
11
Hi everyone, thanks again to all those who make this board the most helpful excel resource on the web.

I have a question that is causing major headaches.

My goal is to dynamically update a formula with a range based on lookup values, ie. A1:A10

Here is how I have set this up so far:

Lets call the sheet I want to do this Sheet 1 with the Sheet pulling data as Sheet 2.

I have a dropdown list of 4 activities, each of which has specific data underneath in Sheet 2. I have the Column Identifier (ie. A,B,C, etc) underneath the Activities on Sheet 2 for ease of using a lookup function to use the formula in Sheet 1.

Let me walk through an example to see if I can be crystal clear.

Sheet 1
Dropdown List found in A1:
Activity 1 - Walk
Activity 2 - Run
Activity 3 - Swim
Activity 4 - Crawl

Cell B1: Shows the corresponding Column letter from the activity

Formula need help with:
=COUNTIF('Sheet 2'!&B1&3&":"&B1&10, A1)

I am almost certain I'm doing this improperly because I can't dynamically link the formula Column to the cell that changes.

(The count is really all I'm looking for based on the dynamic update of the formula, driven by whatever is in Cell B1 in Sheet 1.

I don't know how to better explain this....Maybe there is an easy way? :x :oops:


Sheet 2
Activities mapped in cells:

A B C D
Row 1: Walk Run Swim Crawl
Row 2: A B C D
Row 3: Walk Run Swim Crawl
Row 4: Walk 0 Walk 0
Row 5: 0 0 Swim Crawl



I will post more if I am unclear, although I think this is pretty simple...I'm just stuck!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Bump again...I've been searching about Concatenation but unable to find something I can leverage
 
Upvote 0
Try...

=COUNTIF(INDIRECT("'Sheet 2'!"&B1&"3:"&B1&"10"),A1)

Hope this helps!
 
Upvote 0

Forum statistics

Threads
1,215,312
Messages
6,124,192
Members
449,147
Latest member
sweetkt327

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