|
I have a crazy question. I've created an excel file with the each nfl team's schedule on it, and on each page I also have a ranking system. In this file, I've created a tab called Alpha Tab that has a column for each team and a column for ratings (so you can put your own rating system there). I want to use a function to lookup the name of whatever tab I'm in and pull the value to the right of that name in the tab "alpha tab." For example, I am in the Miami tab. I want to write a function that says "I am in miami, let me go to the alpha tab and return the value just to the right of miami." Is this possible? The spreadsheet makes heavy use of calling value from other tabs, so I know that can be done. However, I did it using brute force, and it'd be nice to learn how to do this. Thanks in advance!
|
# ¿ Oct 9, 2010 00:14 |
|
|
# ¿ May 5, 2024 22:05 |
|
TheAngryDrunk posted:You need a custom function to spit out the worksheet name on a worksheet. This is a lot of help, but I'm not there yet. If I wanted to grab detroit's rating while on the chicago tab, I would enter ='Detroit'!a13. Now, I need to use the LOOKUP function to grab the value to the right of whatever the tab name that sheetname() gives me. I've got the sheetname() function but I don't know which lookup to use. I thought it'd be VLOOKUP but I can't specify across sheets with that, can I? I'm imagining that INDIRECT will come into play, but I'm not sure how to combine the two successfully. Thanks again for both your expedient response and any other help you might give!
|
# ¿ Oct 9, 2010 00:57 |
|
Thanks for the help guys, I'm very nearly there! My next problem is a really weird one. I've got the sheetname(a1) function defined, that's no problem. I think I've got the vlookup function correct (I use =vlookup(sheetname($a$1,true),'Master'!$a$1:$b$33,2). This actually does pull the data I want it to... most of the time. If I have this data in master: pre:Chicago 1 Detroit 2 Minnesota 3 Green Bay 4 NY Giants 5 pre:Chicago 1 Detroit 2 Minnesota 4 Green Bay 4 NY Giants 5 pre:Chicago 1 Detroit 2 Minnesota 3 Green Bay 4 NY Giants 5 Dallas 6 pre:Chicago 1 Detroit 2 Minnesota 6 Green Bay 6 NY Giants 6 Dallas 1
|
# ¿ Oct 14, 2010 05:58 |
|
esquilax posted:Try changing your formula to: false gives me the N/A error. If I do sheetname(a1,false), it still works, so it likely isn't the sheetname function that screws me up. If I have to alphabetize, it's not optimal but it's doable for sure.
|
# ¿ Oct 15, 2010 04:30 |