PC Review


Reply
Thread Tools Rate Thread

Can I use a between clause or in clause on an IF statement

 
 
=?Utf-8?B?c3NjaWFycmlubw==?=
Guest
Posts: n/a
 
      4th May 2007
I have this statement in a cell:

=IF(RIGHT(C12,1)="1",TEXT(0,"00")

Which states that when C12 last digit ends in a 1 then put 00 in C13

I want to do the same if C12 last digit ends in [A]-[E] I know how to do it
in SQL not in Excel programming though.

thanks


 
Reply With Quote
 
 
 
 
=?Utf-8?B?VG9tIE9naWx2eQ==?=
Guest
Posts: n/a
 
      4th May 2007
=IF(OR(RIGHT(C12,1)="1",AND(UPPER(RIGHT(C12,1))>="A",UPPER(RIGHT(C12,1))<="E")),"00","")

--
Regards,
Tom Ogilvy


"ssciarrino" wrote:

> I have this statement in a cell:
>
> =IF(RIGHT(C12,1)="1",TEXT(0,"00")
>
> Which states that when C12 last digit ends in a 1 then put 00 in C13
>
> I want to do the same if C12 last digit ends in [A]-[E] I know how to do it
> in SQL not in Excel programming though.
>
> thanks
>
>

 
Reply With Quote
 
=?Utf-8?B?c3NjaWFycmlubw==?=
Guest
Posts: n/a
 
      4th May 2007
Thanks tom

"Tom Ogilvy" wrote:

> =IF(OR(RIGHT(C12,1)="1",AND(UPPER(RIGHT(C12,1))>="A",UPPER(RIGHT(C12,1))<="E")),"00","")
>
> --
> Regards,
> Tom Ogilvy
>
>
> "ssciarrino" wrote:
>
> > I have this statement in a cell:
> >
> > =IF(RIGHT(C12,1)="1",TEXT(0,"00")
> >
> > Which states that when C12 last digit ends in a 1 then put 00 in C13
> >
> > I want to do the same if C12 last digit ends in [A]-[E] I know how to do it
> > in SQL not in Excel programming though.
> >
> > thanks
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
If statement in Where Clause of SQL? BlueWolverine Microsoft Access Queries 1 10th Dec 2008 01:58 PM
Re: If statement in Where Clause of SQL? Stefan Hoffmann Microsoft Access Queries 0 9th Dec 2008 03:10 PM
How to add an AND clause to a function statement Dean Slindee Microsoft Access Reports 2 6th Nov 2006 08:22 PM
adjusting where clause in SQL statement =?Utf-8?B?Sm9zaCBIZW5yeQ==?= Microsoft Access Queries 0 30th Nov 2004 04:01 PM
sql statement with if clause? Dan Nash Microsoft Access Queries 3 10th Dec 2003 02:07 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:17 AM.