Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Match and Index

I have the following formula:
=IF(S5<8,S4+8.5/24+F28/24,NOW()-TODAY()+F28/24)

I need to replace the "4" in "S4" and the "5" in "S5" by a value stored in
an other cell.
I tried some variations of "Match" and "Index" but it doesn't seem to work.
Any help or pointer will be gratefully appreciated
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default Match and Index

One way:

=IF(INDIRECT("S" & M1)<8, INDIRECT("S" &
M2)+8.5/24+F28/24,NOW()-TODAY()+F28/24)

(where your values are in M1, M2)
Tim

"Leon" wrote in message
...
I have the following formula:
=IF(S5<8,S4+8.5/24+F28/24,NOW()-TODAY()+F28/24)

I need to replace the "4" in "S4" and the "5" in "S5" by a value stored in
an other cell.
I tried some variations of "Match" and "Index" but it doesn't seem to
work.
Any help or pointer will be gratefully appreciated



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Match and Index

Hi Tim,

That solved it!
I think I did try the same syntax but I may have messed up with a few
parenthesis...)

Thanks again!!!

"Tim Williams" wrote:

One way:

=IF(INDIRECT("S" & M1)<8, INDIRECT("S" &
M2)+8.5/24+F28/24,NOW()-TODAY()+F28/24)

(where your values are in M1, M2)
Tim

"Leon" wrote in message
...
I have the following formula:
=IF(S5<8,S4+8.5/24+F28/24,NOW()-TODAY()+F28/24)

I need to replace the "4" in "S4" and the "5" in "S5" by a value stored in
an other cell.
I tried some variations of "Match" and "Index" but it doesn't seem to
work.
Any help or pointer will be gratefully appreciated




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
Find Exact Match using INDEX, MATCH DoubleUU Excel Worksheet Functions 3 August 15th 08 02:42 PM
index(match) Wind Uplift Calculations (match four conditions) JMeier Excel Worksheet Functions 8 August 1st 08 01:45 AM
index match array function-returning only first match, need last. Julie Olsen Excel Worksheet Functions 3 December 29th 06 12:50 AM
How do I display more than one match in a Index/Match formula? Trish Excel Worksheet Functions 0 September 26th 05 10:21 PM
index,match,match on un-sorted data Brisbane Rob Excel Worksheet Functions 3 September 24th 05 10:04 PM


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