Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Bridget
 
Posts: n/a
Default Assign numerical values to text codes

I need to assign values to a text string so that the larger of the two
columns of text (or the higher numeric value) can be found. Can this be
done? If so, how?

An example of what I need to do is:
C = 1
B = 2
A = 3
AA = 4
AAA = 5
SCS = 6
NRT = 7
  #2   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default

On Mon, 18 Apr 2005 14:09:06 -0700, "Bridget"
wrote:

I need to assign values to a text string so that the larger of the two
columns of text (or the higher numeric value) can be found. Can this be
done? If so, how?

An example of what I need to do is:
C = 1
B = 2
A = 3
AA = 4
AAA = 5
SCS = 6
NRT = 7


Simplest would be a lookup table. Use HELP to explore VLOOKUP (or HLOOKUP)


--ron
  #3   Report Post  
z.entropic
 
Posts: n/a
Default

nested IF statements are the simplest way:

=IF(A1="A",1,IF(A1="B",2),...)

i.e., replace FALSE with your next test.

z.entropic

"Bridget" wrote:

I need to assign values to a text string so that the larger of the two
columns of text (or the higher numeric value) can be found. Can this be
done? If so, how?

An example of what I need to do is:
C = 1
B = 2
A = 3
AA = 4
AAA = 5
SCS = 6
NRT = 7

  #4   Report Post  
CLR
 
Posts: n/a
Default

Put your text strings in J1 down to J7, and their numbers in K1 down to
K7.........add on the bottom if you have more...........
Then, assuming one of your test columns is A, put this formula in B1 and
copy down

=VLOOKUP(A1,J:K,2,FALSE)

do the same for the other column(s).........but change the "A1" as
appropriate......
Go to the empty cell just below your numbers in column B and click on the
AutoSum icon in the toolbar........this will sum the column for you.........

Vaya con Dios,
Chuck, CABGx3


"Bridget" wrote in message
...
I need to assign values to a text string so that the larger of the two
columns of text (or the higher numeric value) can be found. Can this be
done? If so, how?

An example of what I need to do is:
C = 1
B = 2
A = 3
AA = 4
AAA = 5
SCS = 6
NRT = 7



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
Count how many different text values in an array. OVERLOAD Excel Worksheet Functions 3 April 14th 05 04:12 PM
How can I get text to equal a numerical value in Excel? Mighty Mike Excel Discussion (Misc queries) 2 January 21st 05 08:03 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Stop Excel from converting text labels in CSV files to Values Just Want a Label! Excel Discussion (Misc queries) 1 January 11th 05 04:51 PM
text and values combined in one cel Bart Excel Discussion (Misc queries) 1 December 14th 04 08:36 AM


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