#1   Report Post  
Flutie99
 
Posts: n/a
Default IF Function Help

How do I write a command that says:

=if(a1=1&b1=a number, c1/d1,"na")

How do I write the "a number" part?
  #2   Report Post  
bj
 
Posts: n/a
Default

If I am reading your post correctly you want a cell to equal C1/D1 when
A1=1
and B1= some some number
and for the cell to = "na" otherwise
=if(and(A1=1,B1=xx),C1/D1,"na")
Just enter your wanted number in place of xx or
you could put the number you want in E1 and use
=if(and(A1=1,B1=E!),C1/D1,"na")
If I am not reading your post correctly, please let me know.
in

"Flutie99" wrote:

How do I write a command that says:

=if(a1=1&b1=a number, c1/d1,"na")

How do I write the "a number" part?

  #3   Report Post  
Andy B
 
Posts: n/a
Default

Hi
Try this:
=IF(AND(A1=1,ISNUMBER(B1)),C1/D1,"na")

Andy.

"Flutie99" wrote in message
...
How do I write a command that says:

=if(a1=1&b1=a number, c1/d1,"na")

How do I write the "a number" part?



  #4   Report Post  
roadkill
 
Posts: n/a
Default

=if(and(a1=1, isnumber(b1)),c1/d1,"na")
- Will

"Flutie99" wrote:

How do I write a command that says:

=if(a1=1&b1=a number, c1/d1,"na")

How do I write the "a number" part?

  #5   Report Post  
Flutie99
 
Posts: n/a
Default

thanks Michael. Another question:

Since there isn't an averageif, what is the best way to average a particular
set of numbers? Thanks.

"Michael" wrote:

Hi Flutie99
Try: =IF(A1=1,IF(ISNUMBER(B1)=TRUE,C1/D1,"na"))
--
Sincerely, Michael Colvin


"Flutie99" wrote:

How do I write a command that says:

=if(a1=1&b1=a number, c1/d1,"na")

How do I write the "a number" part?

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM
Need a ISWorkday Function -- Any Ideas Mark Excel Worksheet Functions 5 March 29th 05 01:58 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


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