Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I'm new to functions... How do I write the function "If cell D3 has any
character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Thanks, Gary |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I'm new to functions... How do I write the function "If cell D3 has any character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" Put this formula in D4 =IF(D3<"",1,0) How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Put this in D4 =if(D3="truck",1) Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Look for COUNTIF in help. You should be able to do it.. - Murthy |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() I'm new to functions... How do I write the function "If cell D3 has any character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" Write in D4: =IF(ISBLANK(D3),0,1) How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Write in D4: =IF(D3="truck",1,"otherwise") Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Write anywhe =COUNTIF(D:D,"car") Regards, Stefi |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks!
"Murthy" wrote: I'm new to functions... How do I write the function "If cell D3 has any character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" Put this formula in D4 =IF(D3<"",1,0) How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Put this in D4 =if(D3="truck",1) Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Look for COUNTIF in help. You should be able to do it.. - Murthy |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks!
"Stefi" wrote: I'm new to functions... How do I write the function "If cell D3 has any character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" Write in D4: =IF(ISBLANK(D3),0,1) How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Write in D4: =IF(D3="truck",1,"otherwise") Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Write anywhe =COUNTIF(D:D,"car") Regards, Stefi |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You are welcome! Thanks for the feedback!
Stefi €˛Gary€¯ ezt Ć*rta: Thanks! "Stefi" wrote: I'm new to functions... How do I write the function "If cell D3 has any character in it, then cell D4 = 1. If it has no characters, cell D4 = 0" Write in D4: =IF(ISBLANK(D3),0,1) How about "If cell D3 has the word 'truck' in it, then cell D4 = 1" Write in D4: =IF(D3="truck",1,"otherwise") Lastly, if I have a column of words such as car, truck, car, bus, bus, can I somehow total the number of times "car" and "truck" appeared in the column? Write anywhe =COUNTIF(D:D,"car") Regards, Stefi |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
formula/functions for average and if functions | Excel Worksheet Functions | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
User-defined functions created in Excel 2000 fail in Excel 2003 | Excel Discussion (Misc queries) | |||
Nesting functions in the functions dialog box | Excel Worksheet Functions |