Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF function for a value range


Hi,

I need some help creating an IF function. I have a list of salary
brackets e.g A 0 - 10,000
B 10,000 - 20,000
C 20,000 - 30,000
D 30,000 - 40,000
etc

On a seperate spreadsheet i have different cells with peoples salaries
in. In a seperate cell underneath their salary cells, i have an empty
cell that needs to have the relevant letter in that shows which band
they fall into A,B,C,D etc.

What i need is an IF function in the blank cell that will automatically
come up when a persons salary is typed in.

E.g : - if i type in 24,000 into the salary cell, i want the blank cell
to then come up with the letter C.

Thanks


--
girth69
------------------------------------------------------------------------
girth69's Profile: http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default IF function for a value range

=IF(A1=0,"",IF(A1<10000,"A",IF(A1<20000,"B",IF(A1< 30000,"C",IF(A1=30000,"D","")))))
Regards,
Alan.
"girth69" wrote in
message ...

Hi,

I need some help creating an IF function. I have a list of salary
brackets e.g A 0 - 10,000
B 10,000 - 20,000
C 20,000 - 30,000
D 30,000 - 40,000
etc

On a seperate spreadsheet i have different cells with peoples salaries
in. In a seperate cell underneath their salary cells, i have an empty
cell that needs to have the relevant letter in that shows which band
they fall into A,B,C,D etc.

What i need is an IF function in the blank cell that will automatically
come up when a persons salary is typed in.

E.g : - if i type in 24,000 into the salary cell, i want the blank cell
to then come up with the letter C.

Thanks


--
girth69
------------------------------------------------------------------------
girth69's Profile:
http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default IF function for a value range

=VLOOKUP(A1,{0,"A";10000,"B";20000,"C";30000,"D"}, 2)

extend as required


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"girth69" wrote in
message ...

Hi,

I need some help creating an IF function. I have a list of salary
brackets e.g A 0 - 10,000
B 10,000 - 20,000
C 20,000 - 30,000
D 30,000 - 40,000
etc

On a seperate spreadsheet i have different cells with peoples salaries
in. In a seperate cell underneath their salary cells, i have an empty
cell that needs to have the relevant letter in that shows which band
they fall into A,B,C,D etc.

What i need is an IF function in the blank cell that will automatically
come up when a persons salary is typed in.

E.g : - if i type in 24,000 into the salary cell, i want the blank cell
to then come up with the letter C.

Thanks


--
girth69
------------------------------------------------------------------------
girth69's Profile:

http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF function for a value range


Thanks,

But the problem i am facing is that i have a list of 13 different
catergories. when i have typed in 8 catergories into the if function as
stated in this post, it wont let me add any more. it comes up saying
theres errors all the time. is there a limit to the number of IFs you
can have in one formula?


--
girth69
------------------------------------------------------------------------
girth69's Profile: http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 492
Default IF function for a value range

Yes there is, the maximum number of IF's is seven.
Use Bob's formula, that will take as many as you like,
Regards,
Alan.
"girth69" wrote in
message ...

Thanks,

But the problem i am facing is that i have a list of 13 different
catergories. when i have typed in 8 catergories into the if function as
stated in this post, it wont let me add any more. it comes up saying
theres errors all the time. is there a limit to the number of IFs you
can have in one formula?


--
girth69
------------------------------------------------------------------------
girth69's Profile:
http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default IF function for a value range


if i type the complete list of catergories could you please give me the
required formula. Thanks,

exceeding 70,000 A
65,000 – 70,000 B
60,000 – 65,000 C
55,000 – 60,000 D
50,000 - 55,000 E
45,000 – 50,000 F
40,000 – 45,000 G
35,000 – 40,000 H
30,000 – 35,000 I
25,000 – 30,000 J
20,000 – 25,000 K
15,000 – 20,000 L
less than 15,000 M


--
girth69
------------------------------------------------------------------------
girth69's Profile: http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default IF function for a value range

it helps if you give us the correct facts to start.

=VLOOKUP(A1,{0,"M";15000,"L";20000,"K";30000,"J"}, 2)

then

=VLOOKUP(A1,{0,"M";15000,"L";20000,"K";30000,"J";3 5000,"I"},2)

then

=VLOOKUP(A1,{0,"M";15000,"L";20000,"K";30000,"J";3 5000,"I";40000,"H"},2)

you should be able to figure out the final solution

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"girth69" wrote in
message ...

if i type the complete list of catergories could you please give me the
required formula. Thanks,

exceeding 70,000 A
65,000 – 70,000 B
60,000 – 65,000 C
55,000 – 60,000 D
50,000 - 55,000 E
45,000 – 50,000 F
40,000 – 45,000 G
35,000 – 40,000 H
30,000 – 35,000 I
25,000 – 30,000 J
20,000 – 25,000 K
15,000 – 20,000 L
less than 15,000 M


--
girth69
------------------------------------------------------------------------
girth69's Profile:

http://www.excelforum.com/member.php...o&userid=23634
View this thread: http://www.excelforum.com/showthread...hreadid=569847



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
Value of cell to determine range in MAX Function [email protected] Excel Worksheet Functions 8 February 18th 06 06:34 PM
use address function to indicate range in calculation Mayo Excel Worksheet Functions 3 February 6th 06 06:41 PM
ExceL Options: Add a chart for Box-plot type and Range function sebafishman Excel Discussion (Misc queries) 1 December 21st 05 08:37 PM
Number range function Sonya T Excel Discussion (Misc queries) 2 July 19th 05 01:19 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM


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