Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Complex if test program possible? If "value" "value", paste "value" in another cell? | Excel Discussion (Misc queries) | |||
Insert "-" in text "1234567890" to have a output like this"123-456-7890" | Excel Discussion (Misc queries) |