Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Making formula too complicated?

Here's the format of the columns/cells I'm working with:

col X Y Z AA AB
| Qualified | Day | NBC | Night | M203 |

In the Qualified column it should be either GO or NO GO
The other 4 columns are dates when the event occurs

I originally didn't have col AB and the formula was:
=IF($B12=""."".IF(Y12="NA","NA",IF(COUNT(Y12:AA12) =3,"GO","NO GO")
Col B is where the soldier's name is entered so if there no name Col X is
left blank.
I had no problems with this formula; however, I now added col AB and now
have to make a distinction between the two weapon systems.

In col I12 there's a selection of weapons (M4/16, M203, and M9).

The formula I had for col X was:

=IF($B12=""."".(Y12="NA","NA",IF(I12="M4/16",COUNT(Y12:AA12)=3,"GO","NO GO",
IF(I12="M203",COUNT(Y12:AB12)=4,"GO","NO GO")))

I get an error with the GO in the first "NO GO"

Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Making formula too complicated?

I think you need a couple of ANDs, like so:

=IF($B12="","",IF(Y12="NA","NA",IF(AND(I12="M4/16",COUNT(Y12:AA12)=3),"GO",IF(AND(I12="M203",COUN T(Y12:AB12)=4),"GO","NO
GO"))))

I've also tidied up a bit.

Hope this helps.

Pete

On Mar 12, 6:58*pm, Bernie R. <Bernie
wrote:
Here's the format of the columns/cells I'm working with:

* *col X * * * * Y * * * *Z * * * *AA * * * AB
| Qualified | Day | NBC | Night | M203 |

In the Qualified column it should be either GO or NO GO
The other 4 columns are dates when the event occurs

I originally didn't have col AB and the formula was:
=IF($B12=""."".IF(Y12="NA","NA",IF(COUNT(Y12:AA12) =3,"GO","NO GO")
Col B is where the soldier's name is entered so if there no name Col X is
left blank.
I had no problems with this formula; however, I now added col AB and now
have to make a distinction between the two weapon systems.

In col I12 there's a selection of weapons (M4/16, M203, and M9).

The formula I had for col X was:

=IF($B12=""."".(Y12="NA","NA",IF(I12="M4/16",COUNT(Y12:AA12)=3,"GO","NO GO",
IF(I12="M203",COUNT(Y12:AB12)=4,"GO","NO GO")))

I get an error with the GO in the first "NO GO"

Any suggestions?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Making formula too complicated?

Worked great, Thanks! Everyone is super in this group. Appreciate all the
help.

"Pete_UK" wrote:

I think you need a couple of ANDs, like so:

=IF($B12="","",IF(Y12="NA","NA",IF(AND(I12="M4/16",COUNT(Y12:AA12)=3),"GO",IF(AND(I12="M203",COUN T(Y12:AB12)=4),"GO","NO
GO"))))

I've also tidied up a bit.

Hope this helps.

Pete

On Mar 12, 6:58 pm, Bernie R. <Bernie
wrote:
Here's the format of the columns/cells I'm working with:

col X Y Z AA AB
| Qualified | Day | NBC | Night | M203 |

In the Qualified column it should be either GO or NO GO
The other 4 columns are dates when the event occurs

I originally didn't have col AB and the formula was:
=IF($B12=""."".IF(Y12="NA","NA",IF(COUNT(Y12:AA12) =3,"GO","NO GO")
Col B is where the soldier's name is entered so if there no name Col X is
left blank.
I had no problems with this formula; however, I now added col AB and now
have to make a distinction between the two weapon systems.

In col I12 there's a selection of weapons (M4/16, M203, and M9).

The formula I had for col X was:

=IF($B12=""."".(Y12="NA","NA",IF(I12="M4/16",COUNT(Y12:AA12)=3,"GO","NO GO",
IF(I12="M203",COUNT(Y12:AB12)=4,"GO","NO GO")))

I get an error with the GO in the first "NO GO"

Any suggestions?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Making formula too complicated?

You're welcome, Bernie - thanks for feeding back.

Pete

On Mar 12, 7:34*pm, Bernie R. <Bernie
wrote:
Worked great, Thanks! * Everyone is super in this group. *Appreciate all the
help.



"Pete_UK" wrote:
I think you need a couple of ANDs, like so:


=IF($B12="","",IF(Y12="NA","NA",IF(AND(I12="M4/16",COUNT(Y12:AA12)=3),"GO",*IF(AND(I12="M203",COU NT(Y12:AB12)=4),"GO","NO
GO"))))


I've also tidied up a bit.


Hope this helps.


Pete


On Mar 12, 6:58 pm, Bernie R. <Bernie
wrote:
Here's the format of the columns/cells I'm working with:


* *col X * * * * Y * * * *Z * * * *AA * * * AB
| Qualified | Day | NBC | Night | M203 |


In the Qualified column it should be either GO or NO GO
The other 4 columns are dates when the event occurs


I originally didn't have col AB and the formula was:
=IF($B12=""."".IF(Y12="NA","NA",IF(COUNT(Y12:AA12) =3,"GO","NO GO")
Col B is where the soldier's name is entered so if there no name Col X is
left blank.
I had no problems with this formula; however, I now added col AB and now
have to make a distinction between the two weapon systems.


In col I12 there's a selection of weapons (M4/16, M203, and M9).


The formula I had for col X was:


=IF($B12=""."".(Y12="NA","NA",IF(I12="M4/16",COUNT(Y12:AA12)=3,"GO","NO GO",
IF(I12="M203",COUNT(Y12:AB12)=4,"GO","NO GO")))


I get an error with the GO in the first "NO GO"


Any suggestions?- 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
Complicated formula? Leigh Excel Discussion (Misc queries) 4 November 22nd 07 01:37 AM
Complicated Formula - I think Sean Excel Worksheet Functions 3 November 17th 06 01:08 AM
making a complicated bar graph harrygorilla Charts and Charting in Excel 1 January 8th 06 04:22 PM
Complicated IF Formula Luke Excel Worksheet Functions 5 November 8th 05 02:18 PM
Complicated formula sixwest Excel Worksheet Functions 1 September 8th 05 09:07 PM


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