Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Assign text to numeric value

have weekly store gross profit report(s) and want to assign a letter based on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with the
use of braces { }?
thx
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Assign text to numeric value

Will something like:

=ROUNDUP((7000-A2)/1000,0)

work??
--
Gary''s Student - gsnu201001


"Reno" wrote:

have weekly store gross profit report(s) and want to assign a letter based on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with the
use of braces { }?
thx

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Assign text to numeric value

Works OK for me. Make sure calculation is set to automatic:

In Excel 2007:

Formulas tabCalculationCalculation OptionsAutomatic

All other versions of Excel:

ToolsOptionsCalculation tabAutomaticOK

You also might want to remove the quotes from around the numbers:

=LOOKUP(A1,{0,1000,2000,3000,4000,5000,6000},{7,6, 5,4,3,2,1})

Quoting numbers makes them TEXT.

--
Biff
Microsoft Excel MVP


"Reno" wrote in message
...
have weekly store gross profit report(s) and want to assign a letter based
on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with the
use of braces { }?
thx



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Assign text to numeric value

it might, but the ranges and/or designation(s) (1... goes to A..) or something.

tried ={0,"7", 1.1,"6"... } cntl-shft enter
as an array, but this also gave incorrect/inconsistent error too.
thx

"Gary''s Student" wrote:

Will something like:

=ROUNDUP((7000-A2)/1000,0)

work??
--
Gary''s Student - gsnu201001


"Reno" wrote:

have weekly store gross profit report(s) and want to assign a letter based on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with the
use of braces { }?
thx

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Assign text to numeric value

That worked, thanks!

"T. Valko" wrote:

Works OK for me. Make sure calculation is set to automatic:

In Excel 2007:

Formulas tabCalculationCalculation OptionsAutomatic

All other versions of Excel:

ToolsOptionsCalculation tabAutomaticOK

You also might want to remove the quotes from around the numbers:

=LOOKUP(A1,{0,1000,2000,3000,4000,5000,6000},{7,6, 5,4,3,2,1})

Quoting numbers makes them TEXT.

--
Biff
Microsoft Excel MVP


"Reno" wrote in message
...
have weekly store gross profit report(s) and want to assign a letter based
on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with the
use of braces { }?
thx



.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Assign text to numeric value

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Reno" wrote in message
...
That worked, thanks!

"T. Valko" wrote:

Works OK for me. Make sure calculation is set to automatic:

In Excel 2007:

Formulas tabCalculationCalculation OptionsAutomatic

All other versions of Excel:

ToolsOptionsCalculation tabAutomaticOK

You also might want to remove the quotes from around the numbers:

=LOOKUP(A1,{0,1000,2000,3000,4000,5000,6000},{7,6, 5,4,3,2,1})

Quoting numbers makes them TEXT.

--
Biff
Microsoft Excel MVP


"Reno" wrote in message
...
have weekly store gross profit report(s) and want to assign a letter
based
on
a range of $0, 1000,2000,3000,4000,5000, 6000 which would return
7,6,5,4,3,2,1 respectively...have tried
=lookup(A1,{0,1000,2000,3000,4000,5000,6000},{"7", "6","5","4","3","2",1"})
which gives the same rating for all stores. is cntl-shft required with
the
use of braces { }?
thx



.



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
assign numeric value to letters and sum with other numbers Galadad Excel Worksheet Functions 3 January 11th 10 09:53 PM
How do I assign a numeric value to a letter IASG Excel Worksheet Functions 2 November 28th 08 10:35 AM
How do I assign a numeric value to text? IE cell = yes then 1 rrr Excel Discussion (Misc queries) 7 September 28th 06 02:01 AM
Can I assign a numeric value to words in Excel? Josh Excel Discussion (Misc queries) 1 July 25th 06 04:11 PM
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 03:19 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"