#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Banding data

I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%

A B
55 2%
66 3%
33 1%
23 1%
1 0%

I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Banding data

in Cell B1 put this formula and drag it down

format cell to percentage ( select col B - Go to format | cells |
number category: percentage | ok )

=INT((A1-1)/20)/1*0.01


On Feb 11, 11:27*pm, Steve wrote:
I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%

A * * * * * * * * * *B
55 * * * * * * * * * 2%
66 * * * * * * * * * 3%
33 * * * * * * * * * 1%
23 * * * * * * * * * 1%
1 * * * * * * * * * * 0%

I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Banding data

=INT((A1-1)/20)/1*0.01

An empty cell or a cell containing numeric 0 will return an incorrect
result.


--
Biff
Microsoft Excel MVP


"muddan madhu" wrote in message
...
in Cell B1 put this formula and drag it down

format cell to percentage ( select col B - Go to format | cells |
number category: percentage | ok )

=INT((A1-1)/20)/1*0.01


On Feb 11, 11:27 pm, Steve wrote:
I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%

A B
55 2%
66 3%
33 1%
23 1%
1 0%

I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 747
Default Banding data

sorry for that

may be this one

=IF(ISBLANK(A1),"",IF(A10,INT((A1-1)/20)/1*0.01,0))


On Feb 11, 11:56*pm, "T. Valko" wrote:
=INT((A1-1)/20)/1*0.01


An empty cell or a cell containing numeric 0 will return an incorrect
result.

--
Biff
Microsoft Excel MVP

"muddan madhu" wrote in message

...
in Cell B1 put this formula and drag it down

format cell to percentage ( select col B - Go to format | cells |
number category: percentage | ok )

=INT((A1-1)/20)/1*0.01

On Feb 11, 11:27 pm, Steve wrote:

I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%


A B
55 2%
66 3%
33 1%
23 1%
1 0%


I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Banding data

Thank you to everyone for there help, both formulas work perfect.

Thanks again.


On 11 Feb, 19:24, muddan madhu wrote:
sorry for that

may be this one

=IF(ISBLANK(A1),"",IF(A10,INT((A1-1)/20)/1*0.01,0))

On Feb 11, 11:56*pm, "T. Valko" wrote:



=INT((A1-1)/20)/1*0.01


An empty cell or a cell containing numeric 0 will return an incorrect
result.


--
Biff
Microsoft Excel MVP


"muddan madhu" wrote in message


...
in Cell B1 put this formula and drag it down


format cell to percentage ( select col B - Go to format | cells |
number category: percentage | ok )


=INT((A1-1)/20)/1*0.01


On Feb 11, 11:27 pm, Steve wrote:


I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%


A B
55 2%
66 3%
33 1%
23 1%
1 0%


I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Banding data

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Thank you to everyone for there help, both formulas work perfect.

Thanks again.


On 11 Feb, 19:24, muddan madhu wrote:
sorry for that

may be this one

=IF(ISBLANK(A1),"",IF(A10,INT((A1-1)/20)/1*0.01,0))

On Feb 11, 11:56 pm, "T. Valko" wrote:



=INT((A1-1)/20)/1*0.01


An empty cell or a cell containing numeric 0 will return an incorrect
result.


--
Biff
Microsoft Excel MVP


"muddan madhu" wrote in message


...
in Cell B1 put this formula and drag it down


format cell to percentage ( select col B - Go to format | cells |
number category: percentage | ok )


=INT((A1-1)/20)/1*0.01


On Feb 11, 11:27 pm, Steve wrote:


I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%


A B
55 2%
66 3%
33 1%
23 1%
1 0%


I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Banding data

One way:

=IF(COUNT(A1),MAX(0,(CEILING(A1,20)/20-1)/100),"")

Format as Percentage 0 decimal places.

Copy down as needed.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
I am complete novice when it comes to these things, I have a set of
data, I want to band the data to display percentages besides it. So
when the data in column A is between 0-20 its 0% in B, 21-40 its 1%,
41-60 its 2%, 61-80 its 3% and 81-100 its 4%

A B
55 2%
66 3%
33 1%
23 1%
1 0%

I want the B column to work itself out, I have tried if else
statements without much look and a lot of error messeages, can anyone
help please?



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 806
Default Banding data

Hello,

=LOOKUP(-A1,{-1E+307,-60,-40,-20},{0.03,0.02,0.01,0})

I hope you have to change 60 to 59 some day, for example :-)

Regards,
Bernd

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
Color Banding PMR Excel Worksheet Functions 1 July 27th 07 06:55 PM
Banding groups Habanerotary Excel Discussion (Misc queries) 5 July 5th 07 07:30 PM
Sumif banding on a condition [email protected] Excel Worksheet Functions 5 July 4th 07 11:30 PM
rubber banding rubber banding Charts and Charting in Excel 1 May 14th 05 01:32 PM
Banding Results Ben Hur Excel Discussion (Misc queries) 2 December 3rd 04 10:19 PM


All times are GMT +1. The time now is 03:32 PM.

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"