A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

using if in a range



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2010, 10:35 AM posted to microsoft.public.excel.worksheet.functions
Sai
external usenet poster
 
Posts: 13
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  
Old April 12th, 2010, 11:03 AM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
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  
Old April 12th, 2010, 11:14 AM posted to microsoft.public.excel.worksheet.functions
Steve Dunn
external usenet poster
 
Posts: 192
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  
Old April 12th, 2010, 02:37 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
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  
Old April 12th, 2010, 02:39 PM posted to microsoft.public.excel.worksheet.functions
Teethless mama
external usenet poster
 
Posts: 3,722
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,

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:00 PM.


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