Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 122
Default Returning "1" if 3 criteria are met, "0" if not

I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 19
Default Returning "1" if 3 criteria are met, "0" if not

One way (assumes we're working in row 2)
=IF(AND(LEN(A2)0,LEN(B2)0,LEN(C2)0),1,0)



"wx4usa" wrote in message
oups.com...
I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,651
Default Returning "1" if 3 criteria are met, "0" if not

On Fri, 24 Aug 2007 00:53:59 -0000, wx4usa wrote:

I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?


Here's one way:

=--(SUMPRODUCT(--(LEN(A1:C1)0))=3)


--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Returning "1" if 3 criteria are met, "0" if not

Another:

=--(counta(a1:c1)=3)
or
=if(counta(a1:c1)=3,1,0)



wx4usa wrote:

I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?


--

Dave Peterson
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 947
Default Returning "1" if 3 criteria are met, "0" if not

Just to mention another option:

= --(COUNTBLANK(A1:C1)=0)

One difference with this vs using COUNTA is that
COUNTA will count a cell with a Prefix Character (ie ') has having data, and
CountBlank will not.

--
Dana DeLouis


"JLatham" wrote in message
...
One way (assumes we're working in row 2)
=IF(AND(LEN(A2)0,LEN(B2)0,LEN(C2)0),1,0)



"wx4usa" wrote in message
oups.com...
I have 3 columns with misc data. Column A is a date, column B is an
invoice number and C is an expense report number. If all 3 columns
have data entered, I would like to have a formula return the number
"1" if not, "0"

How do I do this?





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
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM
Insert "-" in text "1234567890" to have a output like this"123-456-7890" Alwyn Excel Discussion (Misc queries) 3 October 25th 05 11:36 PM


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