Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula with alpha char in cell

I have set up a formula to add values to a cell based on other criteria.
However, the cells all have an alpha/numeric value such as M413351100001.

I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. The formual I have works fine if the cell has
only numeric values. How do I get it to ignore the first character in the
cell (it is always the first character)? In the example above, I want the
new value to be M5133439000006

=IF(N11=1,L11,IF(N111,L11+N11-1))

Thanks-
--
Soni
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 29
Default formula with alpha char in cell

do you always want to increase +5?
further, what is in L11?


--
Appreciate that you click on the Yes button below if this posting was
helpful.

Thank You

cheers, francis









"soni" wrote:

I have set up a formula to add values to a cell based on other criteria.
However, the cells all have an alpha/numeric value such as M413351100001.

I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. The formual I have works fine if the cell has
only numeric values. How do I get it to ignore the first character in the
cell (it is always the first character)? In the example above, I want the
new value to be M5133439000006

=IF(N11=1,L11,IF(N111,L11+N11-1))

Thanks-
--
Soni

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default formula with alpha char in cell

So, you want to increase it by 5? Try this:

=LEFT(A1,1)&(RIGHT(A1,LEN(A1)-1)+5)

Hope this helps.

Pete

On Jan 8, 4:13*pm, soni wrote:
I have set up a formula to add values to a cell based on other criteria. *
However, the cells all have an alpha/numeric value such as M413351100001.

I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. *The formual I have works fine if the cell has
only numeric values. *How do I get it to ignore the first character in the
cell (it is always the first character)? *In the example above, I want the
new value to be M5133439000006

=IF(N11=1,L11,IF(N111,L11+N11-1))

Thanks-
--
Soni


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default formula with alpha char in cell

hi
your post is confusing.
you want to add a value to the value in A1. but your example formula that
works doens't have anything to do with A1.
where is the other value that you want to add to A1.

to remove the letter substitute A1 for =right(A1,len(A1)-1) in your formula.

post back with clarifications and i will try to help witht he whole formula.
right now, i not entirely sure just what we are trying to add or how much.

Regards
FSt1


"soni" wrote:

I have set up a formula to add values to a cell based on other criteria.
However, the cells all have an alpha/numeric value such as M413351100001.

I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. The formual I have works fine if the cell has
only numeric values. How do I get it to ignore the first character in the
cell (it is always the first character)? In the example above, I want the
new value to be M5133439000006

=IF(N11=1,L11,IF(N111,L11+N11-1))

Thanks-
--
Soni

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula with alpha char in cell

Sorry, my two examples were confusing. I want to populate field M11. If
field N11 = 1, then M11 is the same as L11. However, if the value in N11
1, the the value in M11 is the value in L11 incremented by whatever number is
in N11.

Both cell L11 and M11 will have the alpha/numeric data. M5333300001, for
example. I just need to increment the last number in the string by the
amount in the formula. However, because the Alpha char is in the first
position, I'm having trouble making my formula work. So I need to add you
comments to my formula, and copy it to all relevant fields in the table and
it should work?

Thanks for your help
--
Soni


"FSt1" wrote:

hi
your post is confusing.
you want to add a value to the value in A1. but your example formula that
works doens't have anything to do with A1.
where is the other value that you want to add to A1.

to remove the letter substitute A1 for =right(A1,len(A1)-1) in your formula.

post back with clarifications and i will try to help witht he whole formula.
right now, i not entirely sure just what we are trying to add or how much.

Regards
FSt1


"soni" wrote:

I have set up a formula to add values to a cell based on other criteria.
However, the cells all have an alpha/numeric value such as M413351100001.

I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. The formual I have works fine if the cell has
only numeric values. How do I get it to ignore the first character in the
cell (it is always the first character)? In the example above, I want the
new value to be M5133439000006

=IF(N11=1,L11,IF(N111,L11+N11-1))

Thanks-
--
Soni



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default formula with alpha char in cell

Okay, put this formula in M11:

=IF(N11=1,L11,IF(N111,LEFT(L11,1)&(RIGHT(L11,LEN( L11)-1)+N11-1)))

You seem to be adding N11-1 (judging by your earlier formula), so you
might be able to use just this:

=LEFT(L11,1)&(RIGHT(L11,LEN(L11)-1)+N11-1)

assuming N11 is always 1 or more.

Hope this helps.

Pete

On Jan 8, 8:25*pm, soni wrote:
Sorry, my two examples were confusing. *I want to populate field M11. *If
field N11 = 1, then M11 is the same as L11. *However, if the value in N11
1, the the value in M11 is the value in L11 incremented by whatever number is
in N11.

Both cell L11 and M11 will have the alpha/numeric data. *M5333300001, for
example. *I just need to increment the last number in the string by the
amount in the formula. *However, because the Alpha char is in the first
position, I'm having trouble making my formula work. *So I need to add you
comments to my formula, and copy it to all relevant fields in the table and
it should work?

Thanks for your help
--
Soni



"FSt1" wrote:
hi
your post is confusing.
you want to add a value to the value in A1. but your example formula that
works doens't have anything to do with A1.
where is the other value that you want to add to A1.


to remove the letter substitute A1 for =right(A1,len(A1)-1) in your formula.


post back with clarifications and i will try to help witht he whole formula.
right now, i not entirely sure just what we are trying to add or how much.


Regards
FSt1


"soni" wrote:


I have set up a formula to add values to a cell based on other criteria. *
However, the cells all have an alpha/numeric value such as M413351100001.


I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. *The formual I have works fine if the cell has
only numeric values. *How do I get it to ignore the first character in the
cell (it is always the first character)? *In the example above, I want the
new value to be M5133439000006


=IF(N11=1,L11,IF(N111,L11+N11-1))


Thanks-
--
Soni- Hide quoted text -


- Show quoted text -


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default formula with alpha char in cell

Hi Pete-
Thanks for the response. I tried them both out of curiosity, and they both
work beautifully.

Thank you so much for your help!!!
--
Soni


"Pete_UK" wrote:

Okay, put this formula in M11:

=IF(N11=1,L11,IF(N111,LEFT(L11,1)&(RIGHT(L11,LEN( L11)-1)+N11-1)))

You seem to be adding N11-1 (judging by your earlier formula), so you
might be able to use just this:

=LEFT(L11,1)&(RIGHT(L11,LEN(L11)-1)+N11-1)

assuming N11 is always 1 or more.

Hope this helps.

Pete

On Jan 8, 8:25 pm, soni wrote:
Sorry, my two examples were confusing. I want to populate field M11. If
field N11 = 1, then M11 is the same as L11. However, if the value in N11
1, the the value in M11 is the value in L11 incremented by whatever number is
in N11.

Both cell L11 and M11 will have the alpha/numeric data. M5333300001, for
example. I just need to increment the last number in the string by the
amount in the formula. However, because the Alpha char is in the first
position, I'm having trouble making my formula work. So I need to add you
comments to my formula, and copy it to all relevant fields in the table and
it should work?

Thanks for your help
--
Soni



"FSt1" wrote:
hi
your post is confusing.
you want to add a value to the value in A1. but your example formula that
works doens't have anything to do with A1.
where is the other value that you want to add to A1.


to remove the letter substitute A1 for =right(A1,len(A1)-1) in your formula.


post back with clarifications and i will try to help witht he whole formula.
right now, i not entirely sure just what we are trying to add or how much.


Regards
FSt1


"soni" wrote:


I have set up a formula to add values to a cell based on other criteria.
However, the cells all have an alpha/numeric value such as M413351100001.


I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. The formual I have works fine if the cell has
only numeric values. How do I get it to ignore the first character in the
cell (it is always the first character)? In the example above, I want the
new value to be M5133439000006


=IF(N11=1,L11,IF(N111,L11+N11-1))


Thanks-
--
Soni- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default formula with alpha char in cell

You're welcome, Soni - thanks for feeding back.

Pete

On Jan 9, 2:52*pm, soni wrote:
Hi Pete-
Thanks for the response. *I tried them both out of curiosity, and they both
work beautifully. *

Thank you so much for your help!!!
--
Soni



"Pete_UK" wrote:
Okay, put this formula in M11:


=IF(N11=1,L11,IF(N111,LEFT(L11,1)&(RIGHT(L11,LEN( L11)-1)+N11-1)))


You seem to be adding N11-1 (judging by your earlier formula), so you
might be able to use just this:


=LEFT(L11,1)&(RIGHT(L11,LEN(L11)-1)+N11-1)


assuming N11 is always 1 or more.


Hope this helps.


Pete


On Jan 8, 8:25 pm, soni wrote:
Sorry, my two examples were confusing. *I want to populate field M11. *If
field N11 = 1, then M11 is the same as L11. *However, if the value in N11
1, the the value in M11 is the value in L11 incremented by whatever number is
in N11.


Both cell L11 and M11 will have the alpha/numeric data. *M5333300001, for
example. *I just need to increment the last number in the string by the
amount in the formula. *However, because the Alpha char is in the first
position, I'm having trouble making my formula work. *So I need to add you
comments to my formula, and copy it to all relevant fields in the table and
it should work?


Thanks for your help
--
Soni


"FSt1" wrote:
hi
your post is confusing.
you want to add a value to the value in A1. but your example formula that
works doens't have anything to do with A1.
where is the other value that you want to add to A1.


to remove the letter substitute A1 for =right(A1,len(A1)-1) in your formula.


post back with clarifications and i will try to help witht he whole formula.
right now, i not entirely sure just what we are trying to add or how much.


Regards
FSt1


"soni" wrote:


I have set up a formula to add values to a cell based on other criteria. *
However, the cells all have an alpha/numeric value such as M413351100001.


I want to take cell a1 with a value of M513343900001 and increase that
number by a certain value. *The formual I have works fine if the cell has
only numeric values. *How do I get it to ignore the first character in the
cell (it is always the first character)? *In the example above, I want the
new value to be M5133439000006


=IF(N11=1,L11,IF(N111,L11+N11-1))


Thanks-
--
Soni- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


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
FIND 1 char in cell of any 3 char =True Nastech Excel Discussion (Misc queries) 5 April 26th 08 02:17 PM
Using a cell w/Alpha numeric characters in mulplication formula MAJ0116 Excel Worksheet Functions 4 February 10th 07 01:07 AM
8500 cells with phone number(7 char.), wishing to add area code (10 char.) [email protected] Excel Discussion (Misc queries) 6 March 10th 06 05:13 PM
Finding char within a cell Jordan Excel Worksheet Functions 2 June 17th 05 01:19 AM
How do I remove Char(160) from a cell? Dave Excel Worksheet Functions 2 February 3rd 05 02:06 PM


All times are GMT +1. The time now is 06:19 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"