Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Aviator
 
Posts: n/a
Default Additional Columns to be Searched

I was just given the formala below. It works great. I need to incorporate
three additional scenarios.

=INDEX(D:D,MATCH(MAX(C:C),C:C,0))

I have three additional scenarios:
1. Can you do the same thing but if there is no values have it left blank or
return Open? (Currently, it shows #NA)

2. Can you do the same thing except just include odd numbered rows? (ie. D3,
D5.... D589)?

3. Can you do the same thing except instead of the biggest date have the
second biggest date?

Thanks,

Aviator.
  #2   Report Post  
Domenic
 
Posts: n/a
Default

In article ,
"Aviator" wrote:

I was just given the formala below. It works great. I need to incorporate
three additional scenarios.

=INDEX(D:D,MATCH(MAX(C:C),C:C,0))

1. Can you do the same thing but if there is no values have it left blank or
return Open? (Currently, it shows #NA)


=IF(COUNT(C:C),INDEX(D:D,MATCH(MAX(C:C),C:C,0)),"O pen")

2. Can you do the same thing except just include odd numbered rows? (ie. D3,
D5.... D589)?


A3:

For every second row starting with the first cell in the range...

=MAX(IF(MOD(ROW(C3:C589)-CELL("row",C3)+0,2)=0,C3:C589))

....confirmed with CONTROL+SHIFT+ENTER.

For every second row starting with the second cell in the range...

=MAX(IF(MOD(ROW(C3:C589)-CELL("row",C3)+1,2)=0,C3:C589))

....confirmed with CONTROL+SHIFT+ENTER.

A4:

=IF(COUNT(C3:C589),INDEX(D3:D589,MATCH(A3,C3:C589, 0)),"Open")

3. Can you do the same thing except instead of the biggest date have the
second biggest date?


A3:

For every second row starting with the first cell in the range...

=LARGE(IF(MOD(ROW(C3:C589)-CELL("row",C3)+0,2)=0,C3:C589),2)

....confirmed with CONTROL+SHIFT+ENTER.

For every second row starting with the second cell in the range...

=LARGE(IF(MOD(ROW(C3:C589)-CELL("row",C3)+1,2)=0,C3:C589),2)

....confirmed with CONTROL+SHIFT+ENTER.

A4:

=IF(COUNT(C3:C589),INDEX(D3:D589,MATCH(A3,C3:C589, 0)),"Open")

Hope this helps!
  #3   Report Post  
Aviator
 
Posts: n/a
Default

Domenic,

Thank you for your help. The first question you answered worked out great. I
am still having problems with the other two. Have have played with multiple
combonations of formulas which you sent. Examples below:

=IF(COUNT(E5:E555),INDEX(B5:B555,MATCH(LARGE(IF(MO D(ROW(E5:E555)-CELL("row",E5)+0,2)=0,E5:E555),2),E5:E555,0)),"Ope n")

This gives me a value but it's not doing every second row.


=IF(COUNT(E5:E555),INDEX(B5:B555,MATCH(LARGE(IF(MO D(ROW(E5:E555)-CELL("row",E5)+1,2)=0,E5:E555),2),E5:E555,0)),"Ope n")

This returns "#NUM!"

Could I be missing an add-on or something? What do you mean with
".... confirmed with CONTROL+SHIFT+ENTER."
Maybe I am doing something wrong. Can you help.

Thank you,

Aviator



"Domenic" wrote:

In article ,
"Aviator" wrote:

I was just given the formala below. It works great. I need to incorporate
three additional scenarios.

=INDEX(D:D,MATCH(MAX(C:C),C:C,0))

1. Can you do the same thing but if there is no values have it left blank or
return Open? (Currently, it shows #NA)


=IF(COUNT(C:C),INDEX(D:D,MATCH(MAX(C:C),C:C,0)),"O pen")

2. Can you do the same thing except just include odd numbered rows? (ie. D3,
D5.... D589)?


A3:

For every second row starting with the first cell in the range...

=MAX(IF(MOD(ROW(C3:C589)-CELL("row",C3)+0,2)=0,C3:C589))

....confirmed with CONTROL+SHIFT+ENTER.

For every second row starting with the second cell in the range...

=MAX(IF(MOD(ROW(C3:C589)-CELL("row",C3)+1,2)=0,C3:C589))

....confirmed with CONTROL+SHIFT+ENTER.

A4:

=IF(COUNT(C3:C589),INDEX(D3:D589,MATCH(A3,C3:C589, 0)),"Open")

3. Can you do the same thing except instead of the biggest date have the
second biggest date?


A3:

For every second row starting with the first cell in the range...

=LARGE(IF(MOD(ROW(C3:C589)-CELL("row",C3)+0,2)=0,C3:C589),2)

....confirmed with CONTROL+SHIFT+ENTER.

For every second row starting with the second cell in the range...

=LARGE(IF(MOD(ROW(C3:C589)-CELL("row",C3)+1,2)=0,C3:C589),2)

....confirmed with CONTROL+SHIFT+ENTER.

A4:

=IF(COUNT(C3:C589),INDEX(D3:D589,MATCH(A3,C3:C589, 0)),"Open")

Hope this helps!

  #4   Report Post  
Domenic
 
Posts: n/a
Default

Instead of entering the formula with just ENTER, press the CONTROL and
SHIFT keys, then while you have those two keys pressed down hit the
ENTER key. Excel will then place braces {} around the formula, which
will tell you that you've entered the formula correctly.

Hope this helps!

In article ,
"Aviator" wrote:

Domenic,

Thank you for your help. The first question you answered worked out great. I
am still having problems with the other two. Have have played with multiple
combonations of formulas which you sent. Examples below:

=IF(COUNT(E5:E555),INDEX(B5:B555,MATCH(LARGE(IF(MO D(ROW(E5:E555)-CELL("row",E5
)+0,2)=0,E5:E555),2),E5:E555,0)),"Open")

This gives me a value but it's not doing every second row.


=IF(COUNT(E5:E555),INDEX(B5:B555,MATCH(LARGE(IF(MO D(ROW(E5:E555)-CELL("row",E5
)+1,2)=0,E5:E555),2),E5:E555,0)),"Open")

This returns "#NUM!"

Could I be missing an add-on or something? What do you mean with
".... confirmed with CONTROL+SHIFT+ENTER."
Maybe I am doing something wrong. Can you help.

Thank you,

Aviator

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 increase maximum number of columns in excel 2003 [email protected] Excel Discussion (Misc queries) 1 January 16th 05 08:13 PM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM
Columns in Excel will not allow user to click in them Kim Excel Discussion (Misc queries) 1 December 28th 04 06:37 PM
Counting the Contents of Two Columns Molochi Excel Discussion (Misc queries) 6 December 22nd 04 08:13 PM
Averaging columns rhodesv New Users to Excel 1 December 16th 04 08:14 PM


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