Re: LEFT Worksheet function
- From: "loren.pottinger" <loren.pottinger@xxxxxxxxx>
- Date: 5 Sep 2006 11:42:02 -0700
All,
I am baffled none of those work. They only return dep or Amort for all
the cells regardless of what is in column G.
Bernard wrote:
The function LEFT expects text data. Its argument (which I suspect is a
number) should therefore be first converted to text.
Also the quantity it is compared to (namely 17) should be presented as text,
that is "17".
Try this:
=IF(LEFT(TEXT(G7,"#"),2) = "17","Dep", "Amort")
"loren.pottinger" wrote:
=IF(LEFT(G7,2) = 17,"Dep", "Amort")
I constructed the above function to return Dep if the first two digits
starting from the leftmost digit in cell G7 is 17 and return Amort
otherwise, please help. This formula looks so right to me.
.
- References:
- LEFT Work*** function
- From: loren.pottinger
- LEFT Work*** function
- Prev by Date: RE: Upper / Fill Series Function in Excel
- Next by Date: If-Then-Else Statement
- Previous by thread: Re: LEFT Work*** function
- Next by thread: Re: LEFT Work*** function
- Index(es):