Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I want to assign a value to the letter R in a cell range

Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 66
Default I want to assign a value to the letter R in a cell range

Poke wrote:
Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?


If you could use a letter other than "r" or "c", then you could
Insert/Name/Define.... Then a letter (say, Q) and in the "refers to"
blank, put in =8.

then in your cells, you would put in =Q+1 or Q+2 and get the answer 9 or 10

Beege
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I want to assign a value to the letter R in a cell range

Unfortunately the Text value must be R and be able to have a total drawn from
it at the end column for each row.

Thank you for your quick response though

"Beege" wrote:

Poke wrote:
Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?


If you could use a letter other than "r" or "c", then you could
Insert/Name/Define.... Then a letter (say, Q) and in the "refers to"
blank, put in =8.

then in your cells, you would put in =Q+1 or Q+2 and get the answer 9 or 10

Beege

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default I want to assign a value to the letter R in a cell range

if the R will always be the first character
and nothing would be entered without an R
if Mon were column B
in totals cell enter
=if(len(B2)0, if
len(B2)=1,8,8+value(right(b2,len(b2)-1))+if(len(C2......{for the week}
Similar equations can be used with more complex combinations

"Poke" wrote:

Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default I want to assign a value to the letter R in a cell range

The following ugly array formula works. In this example, the data is in B9:H9

=SUM(IF(ISERROR(FIND("R",UPPER(B9:H9))),0,8+IF(LEN (B9:H9)1,INT(RIGHT(B9:H9,LEN(B9:H9)-1)),0)))

To enter an array formula, copy & paste the formula above into a cell. You
may have to adjust for the text wrapping above. Instead of Enter, you press
{Ctrl}{Shift}{Enter} together to enter the array formula. If you do it
correctly, Excel will display curly braces around the formula.

Hope this helps,

Hutch

"Poke" wrote:

Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I want to assign a value to the letter R in a cell range

Thanks to all that replied.

Tom you rock! This is exactly what I was looking for! It works perfectly. I
didn't know about the whole CTRL-SHIFT-ENTER aspect. I'm a little new to
excel. Gee can you tell? HA!

Buddy you're awesome!

Thanks

"Tom Hutchins" wrote:

The following ugly array formula works. In this example, the data is in B9:H9

=SUM(IF(ISERROR(FIND("R",UPPER(B9:H9))),0,8+IF(LEN (B9:H9)1,INT(RIGHT(B9:H9,LEN(B9:H9)-1)),0)))

To enter an array formula, copy & paste the formula above into a cell. You
may have to adjust for the text wrapping above. Instead of Enter, you press
{Ctrl}{Shift}{Enter} together to enter the array formula. If you do it
correctly, Excel will display curly braces around the formula.

Hope this helps,

Hutch

"Poke" wrote:

Actually it's not as simple as what's written in the subject line. I want to
have the following happen; If I enter the letter "r" in a specified cell
range then I want a numeric value of 8 to appear in the total column cell
range for that line. However if I enter "R+1" then it should read as 9 "R+2"
10 etc... here's an example of what I'm trying to acheive,

Name Mon Tues Wed.... Total
Bob Doug R+2 R-1 R 25
Tom David R-5 R+3 R+1 23

Any suggestions?

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
how do i assign a range of numbers to a cell in excel nickfunsw Excel Discussion (Misc queries) 2 October 31st 06 10:22 AM
How do I assign a letter value to a range of data? clatters69 Excel Discussion (Misc queries) 1 September 16th 06 05:55 PM
Can I assign a shortcut key (alt letter) to the format painter Mike Blake Excel Discussion (Misc queries) 2 August 31st 06 09:11 PM
How do I assign numerical values to a letter? Ex: A = 4, B=3, etc Bob1023 Excel Worksheet Functions 1 July 26th 06 02:53 AM
How do I assign a numeric value to a text letter Shaun Excel Discussion (Misc queries) 2 September 18th 05 12:24 AM


All times are GMT +1. The time now is 09:50 AM.

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"