Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Convert Indirect row reference

To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Convert Indirect row reference

Since you're putting the formula in Row 6 to start and you want to look at row
29 first:

....&"'!A"&row()+23), ...

(in both spots)

Harry Stevens wrote:

To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Convert Indirect row reference

Dave,
Thanks for replying. I guess I should have been a little clearer
about the layout...late nights of staring at a worksheet.

I have a sheet "Final Budget" and several sheets named Budget08,
Budget09, etc.. I need to submit our final budget in a different layout
from our budget worksheet. I know I should change the budget worksheet
to the final layout, but for several reason I can not. So I am trying
to work around this.

On the final budget worksheet the formulas start in B5 through B14
and the data in the appropriate budget worksheet starts at A6 and goes
through A15 with a two row break with label text on the budget work
sheet and three on the final worksheet. Then the final budget worksheet
starts again at B18 through B40 and the appropriate budget worksheet
starts again at A18 through A40. So the data in Budget08!A6 goes into
Final Budget!B5, etc.

I had hoped ROW would work, but the rows are not the same in each
area and worksheets. And sometimes I have to insert/delete rows for
clarity.

Does this help?

Harry

Dave Peterson wrote:
Since you're putting the formula in Row 6 to start and you want to look at row
29 first:

...&"'!A"&row()+23), ...

(in both spots)

Harry Stevens wrote:
To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Convert Indirect row reference

I wouldn't use this kind of formula.

I'd try to set up the data so that there were unique keys so that I could use
=vlookup() or =index(match()) to bring back the data I need.

Debra Dalgleish has lots of notes on =vlookup() and =index(match()) he
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble

Harry Stevens wrote:

Dave,
Thanks for replying. I guess I should have been a little clearer
about the layout...late nights of staring at a worksheet.

I have a sheet "Final Budget" and several sheets named Budget08,
Budget09, etc.. I need to submit our final budget in a different layout
from our budget worksheet. I know I should change the budget worksheet
to the final layout, but for several reason I can not. So I am trying
to work around this.

On the final budget worksheet the formulas start in B5 through B14
and the data in the appropriate budget worksheet starts at A6 and goes
through A15 with a two row break with label text on the budget work
sheet and three on the final worksheet. Then the final budget worksheet
starts again at B18 through B40 and the appropriate budget worksheet
starts again at A18 through A40. So the data in Budget08!A6 goes into
Final Budget!B5, etc.

I had hoped ROW would work, but the rows are not the same in each
area and worksheets. And sometimes I have to insert/delete rows for
clarity.

Does this help?

Harry

Dave Peterson wrote:
Since you're putting the formula in Row 6 to start and you want to look at row
29 first:

...&"'!A"&row()+23), ...

(in both spots)

Harry Stevens wrote:
To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry



--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Convert Indirect row reference

Dave,
I had thought about that, but each budget year sheet may contain
different budget item from year to year. So there is no way to set up a
unique key. The data in the budget work sheet is the unique key.

Thanks for some more ideas.

Harry

Dave Peterson wrote:
I wouldn't use this kind of formula.

I'd try to set up the data so that there were unique keys so that I could use
=vlookup() or =index(match()) to bring back the data I need.

Debra Dalgleish has lots of notes on =vlookup() and =index(match()) he
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble

Harry Stevens wrote:
Dave,
Thanks for replying. I guess I should have been a little clearer
about the layout...late nights of staring at a worksheet.

I have a sheet "Final Budget" and several sheets named Budget08,
Budget09, etc.. I need to submit our final budget in a different layout
from our budget worksheet. I know I should change the budget worksheet
to the final layout, but for several reason I can not. So I am trying
to work around this.

On the final budget worksheet the formulas start in B5 through B14
and the data in the appropriate budget worksheet starts at A6 and goes
through A15 with a two row break with label text on the budget work
sheet and three on the final worksheet. Then the final budget worksheet
starts again at B18 through B40 and the appropriate budget worksheet
starts again at A18 through A40. So the data in Budget08!A6 goes into
Final Budget!B5, etc.

I had hoped ROW would work, but the rows are not the same in each
area and worksheets. And sometimes I have to insert/delete rows for
clarity.

Does this help?

Harry

Dave Peterson wrote:
Since you're putting the formula in Row 6 to start and you want to look at row
29 first:

...&"'!A"&row()+23), ...

(in both spots)

Harry Stevens wrote:
To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default Convert Indirect row reference

Can you use multiple columns to determine a unique key?

Saved from a previous post:

If you want exact matches for just two columns (and return a value from a
third), you could use:

=index(othersheet!$c$1:$c$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100),0))

(all in one cell)

This is an array formula. Hit ctrl-shift-enter instead of enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

This returns the value in othersheet column C when column A and B (of
othersheet) match A2 and B2 of the sheet with the formula.

And you can add more conditions by just adding more stuff to that product
portion of the formula:

=index(othersheet!$d$1:$d$100,
match(1,(a2=othersheet!$a$1:$a$100)
*(b2=othersheet!$b$1:$b$100)
*(c2=othersheet!$c$1:$c$100),0))

Harry Stevens wrote:

Dave,
I had thought about that, but each budget year sheet may contain
different budget item from year to year. So there is no way to set up a
unique key. The data in the budget work sheet is the unique key.

Thanks for some more ideas.

Harry

Dave Peterson wrote:
I wouldn't use this kind of formula.

I'd try to set up the data so that there were unique keys so that I could use
=vlookup() or =index(match()) to bring back the data I need.

Debra Dalgleish has lots of notes on =vlookup() and =index(match()) he
http://www.contextures.com/xlFunctions02.html (for =vlookup())
and
http://www.contextures.com/xlFunctions03.html (for =index(match()))
and
http://contextures.com/xlFunctions02.html#Trouble

Harry Stevens wrote:
Dave,
Thanks for replying. I guess I should have been a little clearer
about the layout...late nights of staring at a worksheet.

I have a sheet "Final Budget" and several sheets named Budget08,
Budget09, etc.. I need to submit our final budget in a different layout
from our budget worksheet. I know I should change the budget worksheet
to the final layout, but for several reason I can not. So I am trying
to work around this.

On the final budget worksheet the formulas start in B5 through B14
and the data in the appropriate budget worksheet starts at A6 and goes
through A15 with a two row break with label text on the budget work
sheet and three on the final worksheet. Then the final budget worksheet
starts again at B18 through B40 and the appropriate budget worksheet
starts again at A18 through A40. So the data in Budget08!A6 goes into
Final Budget!B5, etc.

I had hoped ROW would work, but the rows are not the same in each
area and worksheets. And sometimes I have to insert/delete rows for
clarity.

Does this help?

Harry

Dave Peterson wrote:
Since you're putting the formula in Row 6 to start and you want to look at row
29 first:

...&"'!A"&row()+23), ...

(in both spots)

Harry Stevens wrote:
To All,
I would like to convert:

=IF(TRIM(LEFT(INDIRECT("'Budget"&RIGHT(YEAR($H$1), 2)&"'!A29"),1))<="9",
INDIRECT("'Budget"&RIGHT(YEAR($H$1),2)&"'!A29"), "")

to something that will replace the '!A29 with a row function. When I
copy the formula down a worksheet, I have to manually edit the row
reference each time. I have looked at and tried the ROW function, but
cannot seem to get it to work correctly. Any and all help would be
appreciated.

My data runs from A6 to A40 and I am using excel 2003.

Thanks
Harry



--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Updating Indirect Reference(s) Sunrise TG Excel Worksheet Functions 3 February 7th 07 10:41 PM
INDIRECT.EXT reference pdabill Excel Discussion (Misc queries) 1 August 25th 06 12:28 AM
Indirect Reference Danny Lewis Excel Discussion (Misc queries) 5 July 14th 06 10:45 AM
Indirect reference (again?) Hundikoer Excel Worksheet Functions 6 October 25th 05 05:12 PM
indirect reference BorisS Excel Worksheet Functions 3 June 15th 05 03:40 PM


All times are GMT +1. The time now is 12:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"