Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I would like to know how I can perform an IF statement on a cell when looking
at just the first few characters in that cell. Any suggestions? i.e. Cell A1 = "Test" If(A1={first two characters},1,0) Thanks in advance, Chris. |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
You mean like this?
=If(MID(A1,1,2)="Te",1,0) Chris wrote: I would like to know how I can perform an IF statement on a cell when looking at just the first few characters in that cell. Any suggestions? i.e. Cell A1 = "Test" If(A1={first two characters},1,0) Thanks in advance, Chris. |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=if(left(a1,2)="te",1,0)
or if you're looking to return 0 or 1: =--(left(a1,2)="te") the -- stuff changes the true/false to 1/0. Chris wrote: I would like to know how I can perform an IF statement on a cell when looking at just the first few characters in that cell. Any suggestions? i.e. Cell A1 = "Test" If(A1={first two characters},1,0) Thanks in advance, Chris. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Validation Data using Validation Table cell range..... | Excel Discussion (Misc queries) | |||
Formula for Pulling partial data from one cell into another | Excel Worksheet Functions | |||
Why does data validation not work when pasting data into a cell. | Excel Discussion (Misc queries) | |||
remove partial data from cell | Excel Worksheet Functions | |||
Bringing partial data from one cell into another | Excel Worksheet Functions |