ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   wk19!$A:$O = SOME_FUNCTION!$A:$O (https://www.excelbanter.com/excel-worksheet-functions/90217-wk19-%24-%24o-%3D-some_function-%24-%24o.html)

Jouni Kananen

wk19!$A:$O = SOME_FUNCTION!$A:$O
 
Hi,

I have a number of formulas referring to certain data sheets (named as per
week) like this one..:
=IF(ISNA(VLOOKUP($A2,wk19!$A:$O,2,FALSE)),"",VLOOK UP($A2,wk19!$A:$O,2,FALSE))

The maintenance of the worksheet would be easier if I had those wk19, wk20,
wk21, ... as a header row in the data table and refer to those cells in the
formula, but how do I achieve that?

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O

Then I could just copy the formula to the next column and it finds the
corresponding week ID from cell E1. Might be easy, but I just can't find it.

Thanks,
Jouni



Biff

wk19!$A:$O = SOME_FUNCTION!$A:$O
 
Hi!

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O


D1 = wk19
E1 = wk20
F1 = wk21
etc

=IF(ISNA(VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE)) ,"",VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE))

Biff

"Jouni Kananen" wrote in message
...
Hi,

I have a number of formulas referring to certain data sheets (named as per
week) like this one..:
=IF(ISNA(VLOOKUP($A2,wk19!$A:$O,2,FALSE)),"",VLOOK UP($A2,wk19!$A:$O,2,FALSE))

The maintenance of the worksheet would be easier if I had those wk19,
wk20, wk21, ... as a header row in the data table and refer to those cells
in the formula, but how do I achieve that?

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O

Then I could just copy the formula to the next column and it finds the
corresponding week ID from cell E1. Might be easy, but I just can't find
it.

Thanks,
Jouni




Jouni Kananen

wk19!$A:$O = SOME_FUNCTION!$A:$O
 
Works perfect, thanks Biff!

Jouni

"Biff" wrote in message
...
Hi!

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O


D1 = wk19
E1 = wk20
F1 = wk21
etc

=IF(ISNA(VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE)) ,"",VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE))

Biff

"Jouni Kananen" wrote in message
...
Hi,

I have a number of formulas referring to certain data sheets (named as
per week) like this one..:
=IF(ISNA(VLOOKUP($A2,wk19!$A:$O,2,FALSE)),"",VLOOK UP($A2,wk19!$A:$O,2,FALSE))

The maintenance of the worksheet would be easier if I had those wk19,
wk20, wk21, ... as a header row in the data table and refer to those
cells in the formula, but how do I achieve that?

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O

Then I could just copy the formula to the next column and it finds the
corresponding week ID from cell E1. Might be easy, but I just can't find
it.

Thanks,
Jouni






Biff

wk19!$A:$O = SOME_FUNCTION!$A:$O
 
You're welcome. Thanks for the feedback.

Biff

"Jouni Kananen" wrote in message
...
Works perfect, thanks Biff!

Jouni

"Biff" wrote in message
...
Hi!

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O


D1 = wk19
E1 = wk20
F1 = wk21
etc

=IF(ISNA(VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE)) ,"",VLOOKUP($A2,INDIRECT(D1&"!A:O"),2,FALSE))

Biff

"Jouni Kananen" wrote in message
...
Hi,

I have a number of formulas referring to certain data sheets (named as
per week) like this one..:
=IF(ISNA(VLOOKUP($A2,wk19!$A:$O,2,FALSE)),"",VLOOK UP($A2,wk19!$A:$O,2,FALSE))

The maintenance of the worksheet would be easier if I had those wk19,
wk20, wk21, ... as a header row in the data table and refer to those
cells in the formula, but how do I achieve that?

wk19!$A:$O should be something that.:
1' reads the value from cell D1 and
2' combines that with a string !$A:$O

Then I could just copy the formula to the next column and it finds the
corresponding week ID from cell E1. Might be easy, but I just can't find
it.

Thanks,
Jouni









All times are GMT +1. The time now is 01:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com