Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jackle
 
Posts: n/a
Default Paste Functions and Update info

I am having an issue with a worksheet that reads and displyas info from an
SQL view/table. It should read the info and display, then I have a function
in the last column that reads the date for each record (row) and VLOOKUP's
another worksheet to display a name based on that date (=IF(E469<0,
VLOOKUP(I469,'Traveler Color'!$A$3:$B$106,2,FALSE), " ")). As the worksheet
is updated, i curntely have the rows moving up or down (depending upon dates,
etc.). Then the functions reference the old cells and don't update the
correct info. How can i get the functions to be correct. And if the row count
fluctuates, I don't get #REF! errors because the fuctions were deleted at the
end of the list durring updates? If you can follow that and tell me where I'm
going wrong, can you let me know? Thanks
--
humanoid/earthling
  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

One way to immunize a formula to row deletions & insertions is to use the
offset function. Let's say your formula is in col Z, you'd use the following
formula to refer to the same row in cols E & I

=IF(OFFSET(Z2,0,-21)<0, VLOOKUP(OFFSET(Z2,0,-18),'Travel
Color'!$A$3:$B$106,2,FALSE), " ")


"jackle" wrote:

I am having an issue with a worksheet that reads and displyas info from an
SQL view/table. It should read the info and display, then I have a function
in the last column that reads the date for each record (row) and VLOOKUP's
another worksheet to display a name based on that date (=IF(E469<0,
VLOOKUP(I469,'Traveler Color'!$A$3:$B$106,2,FALSE), " ")). As the worksheet
is updated, i curntely have the rows moving up or down (depending upon dates,
etc.). Then the functions reference the old cells and don't update the
correct info. How can i get the functions to be correct. And if the row count
fluctuates, I don't get #REF! errors because the fuctions were deleted at the
end of the list durring updates? If you can follow that and tell me where I'm
going wrong, can you let me know? Thanks
--
humanoid/earthling

  #3   Report Post  
jackle
 
Posts: n/a
Default

That looks cool. What would be the best way to keep those functiions strapped
to the cells? As rows get deleted (and moved up) thru the update, we
sometimes "run out" of pasted functions and have to add more. It doesn't
seem that were have our Data Range Properties set correctly.
--
humanoid/earthling


"Duke Carey" wrote:

One way to immunize a formula to row deletions & insertions is to use the
offset function. Let's say your formula is in col Z, you'd use the following
formula to refer to the same row in cols E & I

=IF(OFFSET(Z2,0,-21)<0, VLOOKUP(OFFSET(Z2,0,-18),'Travel
Color'!$A$3:$B$106,2,FALSE), " ")


"jackle" wrote:

I am having an issue with a worksheet that reads and displyas info from an
SQL view/table. It should read the info and display, then I have a function
in the last column that reads the date for each record (row) and VLOOKUP's
another worksheet to display a name based on that date (=IF(E469<0,
VLOOKUP(I469,'Traveler Color'!$A$3:$B$106,2,FALSE), " ")). As the worksheet
is updated, i curntely have the rows moving up or down (depending upon dates,
etc.). Then the functions reference the old cells and don't update the
correct info. How can i get the functions to be correct. And if the row count
fluctuates, I don't get #REF! errors because the fuctions were deleted at the
end of the list durring updates? If you can follow that and tell me where I'm
going wrong, can you let me know? Thanks
--
humanoid/earthling

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
how to update functions in excel sheet? Inass Excel Worksheet Functions 1 February 22nd 05 05:14 PM
Multiple worksheet queries liam Excel Worksheet Functions 3 February 16th 05 06:52 PM
Timestamp cell to left after update Tahlmorrah Excel Discussion (Misc queries) 3 December 3rd 04 12:35 AM


All times are GMT +1. The time now is 11:57 PM.

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

About Us

"It's about Microsoft Excel"