#1   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Array function

How can I include an array function within an IF function?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Array function

Depends what you want to do, but here's one approach:

=IF(X1="",0,array_formula)

commit with CTRL-SHIFT-ENTER.

However, if you want an alternative non-array solution to your earlier
post, check out my answer.

Hope this helps.

Pete

On Apr 23, 2:14*pm, nc wrote:
How can I include an array function within an IF function?

Thanks.


  #3   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Array function

Peter

I am trying to use this array formula

=SUM(N(OFFSET(INDEX(Sheet1!$C$12:$H$16,0,MATCH(MIN ($B2,3)&$C2,{"1E","2E","3E","1O","2O","3O"},0)),MA TCH(MID($D2,ROW(INDIRECT("1:"&LEN($D2))),1),Sheet1 !$B$12:$B$16,0)-1,0)))

I have tried your solution but does not seem to work.


"Pete_UK" wrote:

Depends what you want to do, but here's one approach:

=IF(X1="",0,array_formula)

commit with CTRL-SHIFT-ENTER.

However, if you want an alternative non-array solution to your earlier
post, check out my answer.

Hope this helps.

Pete

On Apr 23, 2:14 pm, nc wrote:
How can I include an array function within an IF function?

Thanks.



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Array function

My column headings were the opposite way round - E1, E2, E3, O1, O2,
O3, where E3 and O3 meant greater than 2 years.

I'm not sure what IF you want to incorporate within this array formula
from Bob.

Pete

On Apr 23, 2:46*pm, nc wrote:
Peter

I am trying to use this array formula

=SUM(N(OFFSET(INDEX(Sheet1!$C$12:$H$16,0,MATCH(MIN ($B2,3)&$C2,{"1E","2E","3*E","1O","2O","3O"},0)),M ATCH(MID($D2,ROW(INDIRECT("1:"&LEN($D2))),1),Sheet 1*!$B$12:$B$16,0)-1,0)))

I have tried your solution but does not seem to work.



"Pete_UK" wrote:
Depends what you want to do, but here's one approach:


=IF(X1="",0,array_formula)


commit with CTRL-SHIFT-ENTER.


However, if you want an alternative non-array solution to your earlier
post, check out my answer.


Hope this helps.


Pete


On Apr 23, 2:14 pm, nc wrote:
How can I include an array function within an IF function?


Thanks.- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
nc nc is offline
external usenet poster
 
Posts: 119
Default Array function

I would like to use Bob's array formula as below,

If(x1="PGR",SUM(N(OFFSET(INDEX(Sheet1!$C$12:$H$16, 0,MATCH(MIN($B2,3)&$C2,{"1E","2E","3Â*E","1O","2O" ,"3O"},0)),MATCH(MID($D2,ROW(INDIRECT("1:"&LEN($D2 ))),1),Sheet1Â*!$B$12:$B$16,0)-1,0))),"")

The first condition returning the array formula.




"Pete_UK" wrote:

My column headings were the opposite way round - E1, E2, E3, O1, O2,
O3, where E3 and O3 meant greater than 2 years.

I'm not sure what IF you want to incorporate within this array formula
from Bob.

Pete

On Apr 23, 2:46 pm, nc wrote:
Peter

I am trying to use this array formula

=SUM(N(OFFSET(INDEX(Sheet1!$C$12:$H$16,0,MATCH(MIN ($B2,3)&$C2,{"1E","2E","3Â*E","1O","2O","3O"},0)), MATCH(MID($D2,ROW(INDIRECT("1:"&LEN($D2))),1),Shee t1Â*!$B$12:$B$16,0)-1,0)))

I have tried your solution but does not seem to work.



"Pete_UK" wrote:
Depends what you want to do, but here's one approach:


=IF(X1="",0,array_formula)


commit with CTRL-SHIFT-ENTER.


However, if you want an alternative non-array solution to your earlier
post, check out my answer.


Hope this helps.


Pete


On Apr 23, 2:14 pm, nc wrote:
How can I include an array function within an IF function?


Thanks.- Hide quoted text -


- Show quoted text -



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
OR function in array-entered IF function veggies27 Excel Worksheet Functions 8 March 11th 08 06:32 PM
array function birdsting Excel Worksheet Functions 1 September 29th 06 02:06 PM
AND in an array function? Vince Excel Worksheet Functions 2 April 17th 06 05:46 PM
#DIV/0! in the array function Sergun Excel Worksheet Functions 1 November 25th 05 01:14 PM
array function cutsygurl Excel Discussion (Misc queries) 1 July 1st 05 04:49 PM


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