Build a formula with a variable using a cell value

drumsmasher

New Member
Joined
Apr 12, 2021
Messages
1
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
Hi gurus,

I've been silently using this website to build my VBAs and formula, BIG THANKS TO EVERYBODY. I have a question that I think it hasn't been asked here yet.

I have the following formula that I'd like to use a variable based on a cell value that will be translated to a sheet name.

=IF(COUNTIF('Timeline Template'!I10:I15,"In-Progress")>=1,"Started",IF(COUNTIF('Timeline Template'!I10:I15,"Completed")=6,"Completed","Not started"))

The sheet name is "Timeline Template" but I'd like to it to look into a sheet named after a cell value that was previously created using a macro.

Thanks all.
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Watch MrExcel Video

Forum statistics

Threads
1,129,673
Messages
5,637,712
Members
416,980
Latest member
wongsafe

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
Top