Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 184
Default "if" statement help... please!!??

anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default "if" statement help... please!!??

RIGHT(B1,1) will return the last character of B1, so you could write:

=IF(RIGHT(B1,1)="7",B1+4,B1+11)

Note that RIGHT returns a string - hence the quotes.

Hope this helps.

Pete

On Feb 7, 3:04*pm, nikki wrote:
anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki


  #3   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default "if" statement help... please!!??

Good one Pete..........my bad.

Vaya con Dios,
Chuck, CABGx3




"Pete_UK" wrote:

RIGHT(B1,1) will return the last character of B1, so you could write:

=IF(RIGHT(B1,1)="7",B1+4,B1+11)

Note that RIGHT returns a string - hence the quotes.

Hope this helps.

Pete

On Feb 7, 3:04 pm, nikki wrote:
anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default "if" statement help... please!!??

Hi Chuck,

Google Groups has been acting up for a week or so and is not showing
all posts - I can see your earlier posting by using OE, but not
through this portal (which I've gotten used to, so tend to use most
often), so this posting of yours was a bit of a surprise.

I nearly missed the quotes myself !! <bg

Pete

On Feb 7, 3:29*pm, CLR wrote:
Good one Pete..........my bad.

Vaya con Dios,
Chuck, CABGx3



"Pete_UK" wrote:
RIGHT(B1,1) will return the last character of B1, so you could write:


=IF(RIGHT(B1,1)="7",B1+4,B1+11)


Note that RIGHT returns a string - hence the quotes.


Hope this helps.


Pete


On Feb 7, 3:04 pm, nikki wrote:
anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default "if" statement help... please!!??

Yeah, that's what I get for not testing........gotta remember, TEST, TEST,
TEST!!!

Vaya con Dios,
Chuck, CABGx3


"Pete_UK" wrote:

Hi Chuck,

Google Groups has been acting up for a week or so and is not showing
all posts - I can see your earlier posting by using OE, but not
through this portal (which I've gotten used to, so tend to use most
often), so this posting of yours was a bit of a surprise.

I nearly missed the quotes myself !! <bg

Pete

On Feb 7, 3:29 pm, CLR wrote:
Good one Pete..........my bad.

Vaya con Dios,
Chuck, CABGx3



"Pete_UK" wrote:
RIGHT(B1,1) will return the last character of B1, so you could write:


=IF(RIGHT(B1,1)="7",B1+4,B1+11)


Note that RIGHT returns a string - hence the quotes.


Hope this helps.


Pete


On Feb 7, 3:04 pm, nikki wrote:
anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki- Hide quoted text -


- Show quoted text -





  #6   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default "if" statement help... please!!??

=IF(RIGHT(B1,1)=7,B1+4,B1+11)

Vaya con Dios,
Chuck, CABGx3



"nikki" wrote:

anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki

  #7   Report Post  
Posted to microsoft.public.excel.misc
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default "if" statement help... please!!??

OOOPS, forgot the quotes..........see Pete's answer

=IF(RIGHT(B1,1)="7",B1+4,B1+11)

Vaya con Dios,
Chuck, CABGx3




"CLR" wrote:

=IF(RIGHT(B1,1)=7,B1+4,B1+11)

Vaya con Dios,
Chuck, CABGx3



"nikki" wrote:

anyone know if you can write in an if statement "=if(B1"ends with a 7",B1+4,
B1+11)??? I don't know how to say "ends with a 7"..
--
nikki

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
change "true" and "false" to "availble" and "out of stock" inthestands Excel Worksheet Functions 2 July 19th 07 07:05 PM
embedding "ISERROR" function into an "IF" statement [email protected] Excel Worksheet Functions 8 January 4th 07 12:01 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM
"IF" statement & "strikethrough" formatting jijy Excel Worksheet Functions 3 March 22nd 06 06:56 PM


All times are GMT +1. The time now is 09:44 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"