Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sai Sai is offline
external usenet poster
 
Posts: 4
Default using if in a range

I am trying to workout numerology in excel:

I have number 1-9 in row - 1
Alphabets A-I in row - 2
Alphabets J-R in row - 3
Alphabets S-Z in row - 4

I wish to know if I input a value from "A-Z" in different cells, I should
get corresponding numeric values say A20=S,B20=A,C20=I in three different
cells should return A21=1,B21=1,C21=9

Can somebody help me resolve this?

Thanks,
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default using if in a range

=MOD(CODE(A20)-65,9)+1

Or, if the numbers in row 1 might change:

=INDEX($A$1:$A$20,MOD(CODE(A$20)-65,9)+1)




"Sai" wrote in message
...
I am trying to workout numerology in excel:

I have number 1-9 in row - 1
Alphabets A-I in row - 2
Alphabets J-R in row - 3
Alphabets S-Z in row - 4

I wish to know if I input a value from "A-Z" in different cells, I should
get corresponding numeric values say A20=S,B20=A,C20=I in three different
cells should return A21=1,B21=1,C21=9

Can somebody help me resolve this?

Thanks,


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 193
Default using if in a range

Or, if the positions of numbers and letters could change, this covers it:

=INDEX($A$1:$I$1,MAX(INDEX(($A$2:$I$4=A20)*COLUMN( $A$2:$I$4),)))



"Steve Dunn" wrote in message
...
=MOD(CODE(A20)-65,9)+1

Or, if the numbers in row 1 might change:

=INDEX($A$1:$A$20,MOD(CODE(A$20)-65,9)+1)




"Sai" wrote in message
...
I am trying to workout numerology in excel:

I have number 1-9 in row - 1
Alphabets A-I in row - 2
Alphabets J-R in row - 3
Alphabets S-Z in row - 4

I wish to know if I input a value from "A-Z" in different cells, I should
get corresponding numeric values say A20=S,B20=A,C20=I in three different
cells should return A21=1,B21=1,C21=9

Can somebody help me resolve this?

Thanks,



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default using if in a range

=MOD(CODE(A20)-65,9)+1

Your formula fail if A20 is a lower case letter

Try this one:
=MOD(CODE(UPPER(A20))-65,9)+1



"Steve Dunn" wrote:

=MOD(CODE(A20)-65,9)+1

Or, if the numbers in row 1 might change:

=INDEX($A$1:$A$20,MOD(CODE(A$20)-65,9)+1)




"Sai" wrote in message
...
I am trying to workout numerology in excel:

I have number 1-9 in row - 1
Alphabets A-I in row - 2
Alphabets J-R in row - 3
Alphabets S-Z in row - 4

I wish to know if I input a value from "A-Z" in different cells, I should
get corresponding numeric values say A20=S,B20=A,C20=I in three different
cells should return A21=1,B21=1,C21=9

Can somebody help me resolve this?

Thanks,


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default using if in a range

In A21: =SUMPRODUCT(($A$2:$I$4=A20)*$A$1:$I$1)

copy across to C21



"Sai" wrote:

I am trying to workout numerology in excel:

I have number 1-9 in row - 1
Alphabets A-I in row - 2
Alphabets J-R in row - 3
Alphabets S-Z in row - 4

I wish to know if I input a value from "A-Z" in different cells, I should
get corresponding numeric values say A20=S,B20=A,C20=I in three different
cells should return A21=1,B21=1,C21=9

Can somebody help me resolve this?

Thanks,

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 enter formula sum(range+range)*0.15 sumif(range=3) tkw Excel Discussion (Misc queries) 2 October 1st 09 09:17 PM
Excel Addin:Setting the range to the Excel.Range object range prop Rp007 Excel Worksheet Functions 5 November 24th 06 04:30 PM
Selecting range in list of range names depending on a cell informa Courreges Excel Discussion (Misc queries) 2 June 19th 06 10:59 AM
formula to sort a range so that it matches the exact rows of a column that is outside that range? steveo Excel Discussion (Misc queries) 1 June 18th 06 02:05 AM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


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

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

About Us

"It's about Microsoft Excel"