formula help

JOEE1979

Active Member
Joined
Dec 18, 2022
Messages
292
Office Version
  1. 365
Platform
  1. Windows
Hi, I was wondering if there is a way to use cell(D3) to incorporate it into my formula in cell(D8).
If you look at the formula in cel(C8), that's the result I'm looking for


Weekday Bus Cycling - new - Copy.xlsm
BCDEF
2Page3456
3GarageAberfoyle-MON-WEDAberfoyle-THURS-FRIAberfoyle-SATAberfoyle-SUN
4Next RunTomTomTomTom
5Units Ready1
6Remainder0000
7Good UntilTomTomTomTom
810:00#REF!
920:00
1030:00
1140:00
1250:00
Planner
Cell Formulas
RangeFormula
C3:F3D3=INDEX(ListSheets,D2)
C4:F4D4=IFERROR(SMALL(D8:D1048576,COUNTIF(D8:D1048576,"<"&$C$1)+1),"Tom")
C6:F6E6=COUNTIF(E8:E1048576,">="&$C$1)
C7:F7E7=IFERROR(SMALL(E8:E1048576,COUNTIF(E8:E1048576,"<"&$C$1)+E5),"Tom")
D8D8='D3'!D5
C5C5='Aberfoyle-MON-WED'!K1
C8:C12C8='Aberfoyle-MON-WED'!D5
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AO8:AX60,AM61:AX108,AM9:AM60,C9:AL108,C109:AX1048576,C8:AM8Cell Value>$C$1textNO
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
do you have a worksheet named D3?
No, I wanted to see if I can somehow incorporate the name that is retrieved in "D3". That way I can be able to fill a sheet out with over 1000 cells much easier
 
Upvote 0
okay, you want to use the INDIRECT function then: =INDIRECT(D3 & "!D5").
NOTES: 1. The indirect function is volatile and can really slow your workbook down (It recalculates EVERY time the enter key is pressed) If you have a lot of formulas like this it is not advised.
2. On a more pertinent perspective... the above is hardcoded cell D5 on what ever sheet is named in D3. If you want the row to move down with the formula then you need to do some math. I usually do the rows method. If starting this formula in row 8... =INDIRECT(D3 & "!D" & ROW(D8)-3). Also, Sheet names with spaces must be wrapped in Single Quotes (I'm unsure if excel ignore these if the sheet name has no spaces), so you may have to do this: =INDIRECT("'" & D3 & "'!D" & ROW(D8)-3)
 
Upvote 0
okay, you want to use the INDIRECT function then: =INDIRECT(D3 & "!D5").
NOTES: 1. The indirect function is volatile and can really slow your workbook down (It recalculates EVERY time the enter key is pressed) If you have a lot of formulas like this it is not advised.
2. On a more pertinent perspective... the above is hardcoded cell D5 on what ever sheet is named in D3. If you want the row to move down with the formula then you need to do some math. I usually do the rows method. If starting this formula in row 8... =INDIRECT(D3 & "!D" & ROW(D8)-3). Also, Sheet names with spaces must be wrapped in Single Quotes (I'm unsure if excel ignore these if the sheet name has no spaces), so you may have to do this: =INDIRECT("'" & D3 & "'!D" & ROW(D8)-3)
It didnt work, but I modified it to =INDIRECT("'" & D3 & "'" & "!D5")
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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