Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default So many greater than and less than values to calculate

I need to get this formula into a single cell

=if(x <999 then A
=if(x is between and inclusive to 1000-1500 then B
=if(x is between and inclusive to 1501-2500 then C
=if(x is between and inclusive to 2501-3500 then D
=if(x is between and inclusive to 3501-4500 then E
=if(x is between and inclusive to 4501-5500 then F
=if(x is between and inclusive to 5501-7000 then G
=if(x is between and inclusive to 7001-10000 then H
=if(x is between and inclusive to 10001-15000 then I
=if(x is between and inclusive to 15001-20000 then J
=if(x is between and inclusive to 20001-30000 then K
=if(x 30001 then L

I then have to run it down 10,000 rows to define a new value for each row cell
How best to do it?
You're much brighter than I am!

Ta!
Geezer
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default So many greater than and less than values to calculate

Hi

=CHOOSE(MATCH(x,{0;1000;1501;2501;3501;4501;5501;7 001;10001;15001;20001;3000
1},1),A,B,C,D,E,F,G,H,I,J,K,L)
or (depends whad you did mean with A, B, C etc.)
=CHOOSE(MATCH(x,{0;1000;1501;2501;3501;4501;5501;7 001;10001;15001;20001;3000
1},1),"A","B","C","D","E,"F","G","H","I","J","K"," L")

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"Geezer" wrote in message
om...
I need to get this formula into a single cell

=if(x <999 then A
=if(x is between and inclusive to 1000-1500 then B
=if(x is between and inclusive to 1501-2500 then C
=if(x is between and inclusive to 2501-3500 then D
=if(x is between and inclusive to 3501-4500 then E
=if(x is between and inclusive to 4501-5500 then F
=if(x is between and inclusive to 5501-7000 then G
=if(x is between and inclusive to 7001-10000 then H
=if(x is between and inclusive to 10001-15000 then I
=if(x is between and inclusive to 15001-20000 then J
=if(x is between and inclusive to 20001-30000 then K
=if(x 30001 then L

I then have to run it down 10,000 rows to define a new value for each row

cell
How best to do it?
You're much brighter than I am!

Ta!
Geezer



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default So many greater than and less than values to calculate

Create a lookup table like so

0 A
999 B
1500 C
2500 D
etc, you should get the idea by now, and use a formula of


=VLOOKUP(A1,$H$1:$J$12,2)

where A is the value to resolve, H1;J12 is that table, and just copy down.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Geezer" wrote in message
om...
I need to get this formula into a single cell

=if(x <999 then A
=if(x is between and inclusive to 1000-1500 then B
=if(x is between and inclusive to 1501-2500 then C
=if(x is between and inclusive to 2501-3500 then D
=if(x is between and inclusive to 3501-4500 then E
=if(x is between and inclusive to 4501-5500 then F
=if(x is between and inclusive to 5501-7000 then G
=if(x is between and inclusive to 7001-10000 then H
=if(x is between and inclusive to 10001-15000 then I
=if(x is between and inclusive to 15001-20000 then J
=if(x is between and inclusive to 20001-30000 then K
=if(x 30001 then L

I then have to run it down 10,000 rows to define a new value for each row

cell
How best to do it?
You're much brighter than I am!

Ta!
Geezer



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default So many greater than and less than values to calculate


Greetings Arvil
- many thanks for the prompt reply
- I have applied the suggested formula substituting X with the cell to
check and sadly Excell moans at me and will not accept it - what am I
doing wrong?

Here
http://www.gemnetsolutions.com/lessthan.jpg
is the screen dump for your info
- can you help further please, I'm driving myself up the wall?

Ta!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 510
Default So many greater than and less than values to calculate

Hi

A quote mark was missing after "E"

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"Clive Geezer" wrote in message
...

Greetings Arvil
- many thanks for the prompt reply
- I have applied the suggested formula substituting X with the cell to
check and sadly Excell moans at me and will not accept it - what am I
doing wrong?

Here
http://www.gemnetsolutions.com/lessthan.jpg
is the screen dump for your info
- can you help further please, I'm driving myself up the wall?

Ta!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default So many greater than and less than values to calculate

If you are going to copy this formula to 10000 cells, I suggest you use an
explicit table, not embedded data.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Arvi Laanemets" wrote in message
...
Hi

A quote mark was missing after "E"

--
When sending mail, use address arvil<attarkon.ee
Arvi Laanemets


"Clive Geezer" wrote in message
...

Greetings Arvil
- many thanks for the prompt reply
- I have applied the suggested formula substituting X with the cell to
check and sadly Excell moans at me and will not accept it - what am I
doing wrong?

Here
http://www.gemnetsolutions.com/lessthan.jpg
is the screen dump for your info
- can you help further please, I'm driving myself up the wall?

Ta!

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!




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
Calculate rolling average using last 30 values greater than 0. Duke Joel Excel Discussion (Misc queries) 3 April 10th 09 05:07 PM
Need a formula to calculate greater than & show answer as a % dnice66 Excel Worksheet Functions 2 June 28th 06 07:07 AM
Advanced Filter for Values in Column M greater than Values in Colu SteveC Excel Discussion (Misc queries) 3 May 2nd 06 07:55 PM
How can I count values greater than and less than certain values? old grey whiskers Excel Worksheet Functions 6 September 10th 05 02:09 PM
calculate the number of words in a row whose length is greater than 2 sks1379 Excel Worksheet Functions 5 September 4th 05 06:21 PM


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