Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
BSantos
 
Posts: n/a
Default IF function HELP!

=IF(AND(B2=11,B2<13),$I$2,if(b2=13,b2=20),$I$3,i f(b2=21,b2<30),$I$4,"")

I am trying to nest IF formula and I'm not writing the formula correctly. I
have like 6 different ranges I want it to look at.

Help! B.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ian
 
Posts: n/a
Default IF function HELP!

It looks like you want to return the value in I2 if B2 is between 11 &12, I3
id 13 to 20, I4 if 21 to 30 and blank in all other cases.
Try this:
=IF(AND(B2=11,B2<13),$I$2,IF(AND(B2=13,B2<=20),$ I$3,IF(AND(B2=21,B2<30),$I$4,"")))

--
Ian
--
"BSantos" wrote in message
...
=IF(AND(B2=11,B2<13),$I$2,if(b2=13,b2=20),$I$3,i f(b2=21,b2<30),$I$4,"")

I am trying to nest IF formula and I'm not writing the formula correctly.
I
have like 6 different ranges I want it to look at.

Help! B.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sloth
 
Posts: n/a
Default IF function HELP!

look at the VLOOKUP function. It can work with ranges. List all the ranges
you want and I will show you how to use it.

Example (for the info given):

A B
1 0 =""
2 11 =I2
3 13 =I3
4 21 =I4
5 30 =""
6
7 =VLOOKUP(MAX(B7,0),A1:B5,2)

A7 will return these values:
"" for any value <11
I2 for any value =11 and <13
I3 for any value =13 and <21
I4 for any value =21 and <30
"" for any value =30.

I used B7 as the value of interest (instead of B2) in order to keep things
simple with the table placement. You can put the table anywhere, even on
another sheet.

"BSantos" wrote:

=IF(AND(B2=11,B2<13),$I$2,if(b2=13,b2=20),$I$3,i f(b2=21,b2<30),$I$4,"")

I am trying to nest IF formula and I'm not writing the formula correctly. I
have like 6 different ranges I want it to look at.

Help! B.

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
Date & Time mully New Users to Excel 4 May 23rd 05 11:56 AM
Hyperlinks using R[1]C[1] and offset function in its cell referenc Elijah-Dadda Excel Worksheet Functions 0 March 5th 05 03:31 AM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
HOW CAN I GET OFFICE 2003 EXCEL BASIC TO NEST FUNCTIONS LIKE EXCE. Robert AS Excel Worksheet Functions 4 December 2nd 04 10:49 AM
Find a Function to use accross different worksheets R. Hale Excel Worksheet Functions 3 November 25th 04 07:07 AM


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