PC Review


Reply
Thread Tools Rate Thread

Formula to Extract Values within a Range

 
 
prkhan56
Guest
Posts: n/a
 
      19th Jul 2005
Hello All,
I am using Excel 2003 and have the following problem

Col A
1.3815
1.1732
1.0242
1.4839
1.1457
1.4357
1.23
1.9563
1.1695
1.3956
1.2502
1.5549
0.9634
1.0289
5.2345
3.2391

I wish to have a formula where the following can be achieved in
respective columns

Col B : should display values upto 1.2
Col C : should display values from 1.2 to 1.5
Col D : should display values from 1.5 to 1.9
Col E : should display values from greater than 1.9

Any help would be appreciated

TIA

Rashid Khan

 
Reply With Quote
 
 
 
 
Bernard Liengme
Guest
Posts: n/a
 
      19th Jul 2005
In B1 =IF(A1<=1.2,A1,NA())
In C1 =IF(AND(A1>1.2, A1<=1.5),A1,NA())
in D1 =IF(AND(A1>1.5, A1<=1.9, A1, NA())
In E1 =IF(A1>1.9,A1, NA())
Copy down the rows
If you don't want the #N/A entries, try filtering
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"prkhan56" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello All,
> I am using Excel 2003 and have the following problem
>
> Col A
> 1.3815
> 1.1732
> 1.0242
> 1.4839
> 1.1457
> 1.4357
> 1.23
> 1.9563
> 1.1695
> 1.3956
> 1.2502
> 1.5549
> 0.9634
> 1.0289
> 5.2345
> 3.2391
>
> I wish to have a formula where the following can be achieved in
> respective columns
>
> Col B : should display values upto 1.2
> Col C : should display values from 1.2 to 1.5
> Col D : should display values from 1.5 to 1.9
> Col E : should display values from greater than 1.9
>
> Any help would be appreciated
>
> TIA
>
> Rashid Khan
>



 
Reply With Quote
 
Roger Govier
Guest
Posts: n/a
 
      19th Jul 2005
In cell B1 =IF(A1<=1.2,A1,"")
In cell C1 =IF(AND(A1>1.2,A1<=1.5),A1,"")
In cell D1 =IF(AND(A1>1.5,A1<=1.9),A1,"")
In cell E1 =IF(A1>1.9,A1,"")

Copy B1:E1 down to the end of your data range

--
Regards
Roger Govier
"prkhan56" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello All,
> I am using Excel 2003 and have the following problem
>
> Col A
> 1.3815
> 1.1732
> 1.0242
> 1.4839
> 1.1457
> 1.4357
> 1.23
> 1.9563
> 1.1695
> 1.3956
> 1.2502
> 1.5549
> 0.9634
> 1.0289
> 5.2345
> 3.2391
>
> I wish to have a formula where the following can be achieved in
> respective columns
>
> Col B : should display values upto 1.2
> Col C : should display values from 1.2 to 1.5
> Col D : should display values from 1.5 to 1.9
> Col E : should display values from greater than 1.9
>
> Any help would be appreciated
>
> TIA
>
> Rashid Khan
>



 
Reply With Quote
 
prkhan56
Guest
Posts: n/a
 
      21st Jul 2005
Thanks to both of you.

Works like a charm

Rashid Khan

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to extract number values only April Microsoft Excel Misc 8 22nd Nov 2009 01:06 PM
IF formula using a range of values in a cell Baz Microsoft Excel Worksheet Functions 7 25th Jan 2008 04:08 PM
formula for range values question webadict2be Microsoft Excel Misc 4 7th Feb 2006 01:49 AM
Formula to extract text from range. Jackson Brown Microsoft Excel Worksheet Functions 4 10th Sep 2004 08:27 PM
look for a range of values in a formula jlbetz Microsoft Excel Misc 2 8th Dec 2003 09:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:52 AM.