Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default IF Statement or nested IF

I have 4 stations , lets say A, B, C, D with daily Temperature Data, I want
fill up missinf data "M" for station A from stations B,C,D; if I write =if
(a2="M", b2, a2) to get datat from staion B, BUT station B may have missing
"M" so I need to get the data from station C for that particular date and
again if Station C has "M" for the same day I need to get it from station D.
so

should I write
=IF(D2="M",E2*(IF(E2="M",F2,E2),D2))

but this gives me result "FALSE", can anybody help me

I appreciate your help, thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default IF Statement or nested IF

Hi Rahim

Try the below formula in cell A2
=INDEX(B2:D2,MATCH(TRUE,INDEX(B2:D2<0,),))

If this post helps click Yes
---------------
Jacob Skaria


"Rahim" wrote:

I have 4 stations , lets say A, B, C, D with daily Temperature Data, I want
fill up missinf data "M" for station A from stations B,C,D; if I write =if
(a2="M", b2, a2) to get datat from staion B, BUT station B may have missing
"M" so I need to get the data from station C for that particular date and
again if Station C has "M" for the same day I need to get it from station D.
so

should I write
=IF(D2="M",E2*(IF(E2="M",F2,E2),D2))

but this gives me result "FALSE", can anybody help me

I appreciate your help, thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default IF Statement or nested IF

Correction. Try the below. ... for "M"

=INDEX(A2:D2,MATCH(TRUE,INDEX(A2:D2<"M",),))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Hi Rahim

Try the below formula in cell A2
=INDEX(B2:D2,MATCH(TRUE,INDEX(B2:D2<0,),))

If this post helps click Yes
---------------
Jacob Skaria


"Rahim" wrote:

I have 4 stations , lets say A, B, C, D with daily Temperature Data, I want
fill up missinf data "M" for station A from stations B,C,D; if I write =if
(a2="M", b2, a2) to get datat from staion B, BUT station B may have missing
"M" so I need to get the data from station C for that particular date and
again if Station C has "M" for the same day I need to get it from station D.
so

should I write
=IF(D2="M",E2*(IF(E2="M",F2,E2),D2))

but this gives me result "FALSE", can anybody help me

I appreciate your help, thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default IF Statement or nested IF

Using IF..
=IF(A2<"M",A2,IF(B2<"M",B2,IF(C2<"M",C2,IF(D2< "M",D2,"No values found"))))

If this post helps click Yes
---------------
Jacob Skaria


"Jacob Skaria" wrote:

Hi Rahim

Try the below formula in cell A2
=INDEX(B2:D2,MATCH(TRUE,INDEX(B2:D2<0,),))

If this post helps click Yes
---------------
Jacob Skaria


"Rahim" wrote:

I have 4 stations , lets say A, B, C, D with daily Temperature Data, I want
fill up missinf data "M" for station A from stations B,C,D; if I write =if
(a2="M", b2, a2) to get datat from staion B, BUT station B may have missing
"M" so I need to get the data from station C for that particular date and
again if Station C has "M" for the same day I need to get it from station D.
so

should I write
=IF(D2="M",E2*(IF(E2="M",F2,E2),D2))

but this gives me result "FALSE", can anybody help me

I appreciate your help, thanks

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
Nested if statement or Nested if OR statement CD27 Excel Worksheet Functions 6 February 19th 09 10:47 PM
IF and OR nested statement help [email protected] Excel Discussion (Misc queries) 4 July 16th 07 10:22 PM
Nested IF statement Teri Excel Worksheet Functions 2 January 30th 07 06:40 PM
Nested if then else statement tzip123 Excel Worksheet Functions 8 February 24th 06 05:38 PM
NESTED IF STATEMENT jmsbert Excel Worksheet Functions 10 October 10th 05 04:25 PM


All times are GMT +1. The time now is 04:22 AM.

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"