Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default reference and replace data from one sheet to another

I am trying to do a find and replace type formula where the worksheet looks
at a cell with a number (or in this instance date) within a worksheet, then
searches a seperate worksheet to find the date closest from a list of 24
variables and adds that value to the cell

Example: I have a spreadhseet that calculates a simple timeline (1 variable
+ another). After this I want the end variable to be the reference point for
a meeting. The meetings are set times within the calendar year (will not move
with variable) and therefore will need to reference this list and find the
closest meeting to the end variable .
Can anyone help
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default reference and replace data from one sheet to another

I am not sure I fully understand your message. However, finding the
value, within a list, that is closest to a given value is done with the
following *array* formula:

=INDEX(B1:B24,MATCH(MIN(ABS(A1:A24-C8)),ABS(A1:A24-C8),0))

As an array formula it should be committed with key combo
Ctrl+Shift+Enter

HTH
Kostis Vezerides

christoff13 wrote:
I am trying to do a find and replace type formula where the worksheet looks
at a cell with a number (or in this instance date) within a worksheet, then
searches a seperate worksheet to find the date closest from a list of 24
variables and adds that value to the cell

Example: I have a spreadhseet that calculates a simple timeline (1 variable
+ another). After this I want the end variable to be the reference point for
a meeting. The meetings are set times within the calendar year (will not move
with variable) and therefore will need to reference this list and find the
closest meeting to the end variable .
Can anyone help


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
Macro question Chris Excel Worksheet Functions 12 July 7th 06 01:23 AM
Replacing sheet reference in multiple cells... neilcarden Excel Worksheet Functions 3 June 23rd 06 05:00 PM
Indirect reference to another sheet that can be dragged Brian Excel Worksheet Functions 1 October 17th 05 09:05 PM
How to replace a function with its resulting reference in a formula? Dmitry Kopnichev Excel Worksheet Functions 7 October 13th 05 09:48 PM
Using a relative SHEET reference for source data in a chart James Charts and Charting in Excel 6 August 16th 05 05:07 PM


All times are GMT +1. The time now is 12:39 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"