ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can I do this without an array formula (https://www.excelbanter.com/excel-discussion-misc-queries/126493-can-i-do-without-array-formula.html)

Brad

Can I do this without an array formula
 
What I want to do is to mark a calendar with holiday's (by using an "H") the
below equation works - is there a better way to do this?

I have the months starting in row 11 thru row 22 and the days of the month
starting in column b thru af. This array formula is in every cell of the
year as defined above.

{=IF(OR(DATE($AM$10,Brad!$AM11,Brad!B$10)=Holidays !$F$5:$F$12),"H","")}

Sandy Mann

Can I do this without an array formula
 
Try the non array formula:

=IF(ISNA(MATCH(DATE($AM$10,Brad!$AM11,Brad!B$10),H olidays!$F$5:$F$12),0)),"",IF(MATCH(DATE($AM$10,Br ad!$AM11,Brad!B$10),Holidays!$F$5:$F$12),0),"H","" ))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Brad" wrote in message
...
What I want to do is to mark a calendar with holiday's (by using an "H")
the
below equation works - is there a better way to do this?

I have the months starting in row 11 thru row 22 and the days of the month
starting in column b thru af. This array formula is in every cell of the
year as defined above.

{=IF(OR(DATE($AM$10,Brad!$AM11,Brad!B$10)=Holidays !$F$5:$F$12),"H","")}




driller

Can I do this without an array formula
 
maybe can be..
=IF(LOOKUP(DATE($AM$10,Brad!$AM11,Brad!B$10),Holid ays!$F$5:$F$12)=DATE($AM$10,Brad!$AM11,Brad!B$10), "H","")
not entered as array formula...
--
*****
birds of the same feather flock together..



"Brad" wrote:

What I want to do is to mark a calendar with holiday's (by using an "H") the
below equation works - is there a better way to do this?

I have the months starting in row 11 thru row 22 and the days of the month
starting in column b thru af. This array formula is in every cell of the
year as defined above.

{=IF(OR(DATE($AM$10,Brad!$AM11,Brad!B$10)=Holidays !$F$5:$F$12),"H","")}


daddylonglegs

Can I do this without an array formula
 
Don't think you need all that, Sandy. Why not just

=IF(ISNA(MATCH(DATE($AM$10,Brad!$AM11,Brad!B$10),H olidays!$F$5:$F$12,0)),"","H")

"Sandy Mann" wrote:

Try the non array formula:

=IF(ISNA(MATCH(DATE($AM$10,Brad!$AM11,Brad!B$10),H olidays!$F$5:$F$12),0)),"",IF(MATCH(DATE($AM$10,Br ad!$AM11,Brad!B$10),Holidays!$F$5:$F$12),0),"H","" ))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Brad" wrote in message
...
What I want to do is to mark a calendar with holiday's (by using an "H")
the
below equation works - is there a better way to do this?

I have the months starting in row 11 thru row 22 and the days of the month
starting in column b thru af. This array formula is in every cell of the
year as defined above.

{=IF(OR(DATE($AM$10,Brad!$AM11,Brad!B$10)=Holidays !$F$5:$F$12),"H","")}





Sandy Mann

Can I do this without an array formula
 
"daddylonglegs" wrote in message
...
Don't think you need all that, Sandy


Very true! Good thinking. That's one of the things that I like about being
in these NG's, it helps you get out of the *straightjacket* thinking.

--
Regards,

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"daddylonglegs" wrote in message
...
Don't think you need all that, Sandy. Why not just

=IF(ISNA(MATCH(DATE($AM$10,Brad!$AM11,Brad!B$10),H olidays!$F$5:$F$12,0)),"","H")

"Sandy Mann" wrote:

Try the non array formula:

=IF(ISNA(MATCH(DATE($AM$10,Brad!$AM11,Brad!B$10),H olidays!$F$5:$F$12),0)),"",IF(MATCH(DATE($AM$10,Br ad!$AM11,Brad!B$10),Holidays!$F$5:$F$12),0),"H","" ))

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


with @tiscali.co.uk


"Brad" wrote in message
...
What I want to do is to mark a calendar with holiday's (by using an
"H")
the
below equation works - is there a better way to do this?

I have the months starting in row 11 thru row 22 and the days of the
month
starting in column b thru af. This array formula is in every cell of
the
year as defined above.

{=IF(OR(DATE($AM$10,Brad!$AM11,Brad!B$10)=Holidays !$F$5:$F$12),"H","")}








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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com