A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Selecting a Value from a Range of Values



 
 
Thread Tools Display Modes
  #1  
Old July 6th, 2004, 12:14 PM
breenmck
external usenet poster
 
Posts: n/a
Default Selecting a Value from a Range of Values

I want to select a value from a range of 20 Values depending upon the relationship between two cells outside that range.

Lets say the Range of Values I want to select from is held in A1 to A20

I then Have a Range of Different Values in held in C1 to C24 - C1 = 1, C2 =2 ..... C24 = 24

In E1 I have a Value that could be anything from 1 to 24


If C1 = E1, I want to put the Value in A1 into D1, A2 into D2, A3 into D3 etc
If C2 = E1, I want to put 0 into D1,the Value in A1 into D2, A2 into D3, A3 into D4 etc

Can it be done?
  #2  
Old July 6th, 2004, 05:11 PM
RagDyeR
external usenet poster
 
Posts: n/a
Default Selecting a Value from a Range of Values

Simplest way would be with one formula in D1,
And another in D2, which would be copied down the rest of the column.

In D1:
=IF(C1=E1,A1,IF(C2=E1,0,""))

In D2:
=IF($C$1=$E$1,A2,IF($C$2=$E$1,A1,""))
And drag down to copy as needed.
--

HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================

"breenmck" wrote in message
...
I want to select a value from a range of 20 Values depending upon the
relationship between two cells outside that range.

Lets say the Range of Values I want to select from is held in A1 to A20

I then Have a Range of Different Values in held in C1 to C24 - C1 = 1, C2 =2
...... C24 = 24

In E1 I have a Value that could be anything from 1 to 24


If C1 = E1, I want to put the Value in A1 into D1, A2 into D2, A3 into D3
etc
If C2 = E1, I want to put 0 into D1,the Value in A1 into D2, A2 into D3, A3
into D4 etc

Can it be done?


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP for a range of data rather than specific values? tHatDudeUK Worksheet Functions 1 February 21st, 2004 02:02 AM
sum top values in a range Jonathan Parminter Worksheet Functions 4 December 9th, 2003 03:18 AM
Selecting Data Range Charts and Charting 1 November 11th, 2003 09:42 PM
Remove values from a range of cells [email protected] Worksheet Functions 3 October 21st, 2003 02:58 PM


All times are GMT +1. The time now is 09:59 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.