Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to find the value with 2 conditions?

Does anyone have any suggestions on how to find the value with 2 conditions?
There is a list of date under EY column, and a list of number under FA column.
I would like to find the date, whch month is Feb under column EY with the
max numbers within Feb. For example,

01.27 0
01.28 0
01.29 0
01.30 2
01.31 3
02.01 5, it should return 02.01 on FC column based on this row
02.02 3
02.03 2
02.04 0
02.05 0
02.06 1
02.07 2

Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default How to find the value with 2 conditions?

Hi,

Assuming your dates are entered as three digit months Jan, Feb,... the
following array formula will do the trick:

=INDEX(FC2:FC14,MATCH(TRUE,MAX(IF(EY2:EY14="Feb",F A2:FA14,0))=FA2:FA14,0))

To make this an array press Shift+Ctrl+Enter to enter the formula not Enter.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Eric" wrote:

Does anyone have any suggestions on how to find the value with 2 conditions?
There is a list of date under EY column, and a list of number under FA column.
I would like to find the date, whch month is Feb under column EY with the
max numbers within Feb. For example,

01.27 0
01.28 0
01.29 0
01.30 2
01.31 3
02.01 5, it should return 02.01 on FC column based on this row
02.02 3
02.03 2
02.04 0
02.05 0
02.06 1
02.07 2

Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How to find the value with 2 conditions?

another way:

=MAX(IF((ISNUMBER($FA$2:$FA$28))*(MONTH($EY$2:$EY$ 28)=2);$FA$2:$FA
$28;""))


On 6 Mar, 08:53, Shane Devenshire
wrote:
Hi,

Assuming your dates are entered as three digit months Jan, Feb,... the
following array formula will do the trick:

=INDEX(FC2:FC14,MATCH(TRUE,MAX(IF(EY2:EY14="Feb",F A2:FA14,0))=FA2:FA14,0))

To make this an array press Shift+Ctrl+Enter to enter the formula not Enter.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire



"Eric" wrote:
Does anyone have any suggestions on how to find the value with 2 conditions?
There is a list of date under EY column, and a list of number under FA column.
I would like to find the date, whch month is Feb under column EY with the
max numbers within Feb. For example,


01.27 * * *0
01.28 * * *0
01.29 * * *0
01.30 * * *2
01.31 * * *3
02.01 * * *5, it should return 02.01 on FC column based on this row
02.02 * * *3
02.03 * * *2
02.04 * * *0
02.05 * * *0
02.06 * * *1
02.07 * * *2


Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric- Ukryj cytowany tekst -


- Poka¿ cytowany tekst -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 896
Default How to find the value with 2 conditions?

replace ; with ,
sorry

On 6 Mar, 09:08, Jarek Kujawa wrote:
another way:

=MAX(IF((ISNUMBER($FA$2:$FA$28))*(MONTH($EY$2:$EY$ 28)=2);$FA$2:$FA
$28;""))

On 6 Mar, 08:53, Shane Devenshire
wrote:



Hi,


Assuming your dates are entered as three digit months Jan, Feb,... the
following array formula will do the trick:


=INDEX(FC2:FC14,MATCH(TRUE,MAX(IF(EY2:EY14="Feb",F A2:FA14,0))=FA2:FA14,0))


To make this an array press Shift+Ctrl+Enter to enter the formula not Enter.


--
If this helps, please click the Yes button.


Cheers,
Shane Devenshire


"Eric" wrote:
Does anyone have any suggestions on how to find the value with 2 conditions?
There is a list of date under EY column, and a list of number under FA column.
I would like to find the date, whch month is Feb under column EY with the
max numbers within Feb. For example,


01.27 Â* Â* Â*0
01.28 Â* Â* Â*0
01.29 Â* Â* Â*0
01.30 Â* Â* Â*2
01.31 Â* Â* Â*3
02.01 Â* Â* Â*5, it should return 02.01 on FC column based on this row
02.02 Â* Â* Â*3
02.03 Â* Â* Â*2
02.04 Â* Â* Â*0
02.05 Â* Â* Â*0
02.06 Â* Â* Â*1
02.07 Â* Â* Â*2


Does anyone have any suggestions?
Thanks in advance for any suggestions
Eric- Ukryj cytowany tekst -


- Poka¿ cytowany tekst -- Ukryj cytowany tekst -


- Pokaż cytowany tekst -


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
Countif Conditions - Use of conditions that vary by cell value JonTarg Excel Discussion (Misc queries) 1 May 30th 08 01:21 PM
How do I handle error conditions with the FIND command? mywebaccts (at) PLUGcomcast.net Excel Worksheet Functions 6 August 5th 07 12:14 AM
2 Conditions + Sum of a colum matching those conditions Jeffa Excel Worksheet Functions 5 June 8th 07 12:14 AM
shade cells based on conditions - i have more than 3 conditions Mo2 Excel Worksheet Functions 3 March 30th 07 07:19 AM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 07:49 AM.

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"