Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Duncan Sibbald
 
Posts: n/a
Default IF from a range of cells

I am having real trouble with this !

Basically, I have a range of cells from A2 to A13 on Worksheet 2. These are
in a named range and form part of a drop down list in Worksheet 1. What I
want to happen is that when I select a value from any of the ranges from A2
to A7 from cell G7 in Worksheet 1 (in the drop down menu), it will paste the
value from E19 otherwise return 0.

I have got this so far:
=OR(IF(Sheet2!$A$2=G19,$E$19,"0"),IF(Sheet2!$A$3=G 19,$E$19,"0")), so as you
see I am not really getting anywhere !

Any help would be gratefully received.

Best regards,

Duncan


  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Try using an array formula (committed with Ctrl-Shift-Enter) instead:

=IF(OR(Sheet2!$A$2:$A$7=G19),$E$19,"0")



"Duncan Sibbald" <duncansibbald"no spam" wrote:

I am having real trouble with this !

Basically, I have a range of cells from A2 to A13 on Worksheet 2. These are
in a named range and form part of a drop down list in Worksheet 1. What I
want to happen is that when I select a value from any of the ranges from A2
to A7 from cell G7 in Worksheet 1 (in the drop down menu), it will paste the
value from E19 otherwise return 0.

I have got this so far:
=OR(IF(Sheet2!$A$2=G19,$E$19,"0"),IF(Sheet2!$A$3=G 19,$E$19,"0")), so as you
see I am not really getting anywhere !

Any help would be gratefully received.

Best regards,

Duncan



  #3   Report Post  
Duncan Sibbald
 
Posts: n/a
Default

Duke,

Worked perfectly ! Thanks so much,

Duncan



"Duke Carey" wrote in message
...
Try using an array formula (committed with Ctrl-Shift-Enter) instead:

=IF(OR(Sheet2!$A$2:$A$7=G19),$E$19,"0")



"Duncan Sibbald" <duncansibbald"no spam" wrote:

I am having real trouble with this !

Basically, I have a range of cells from A2 to A13 on Worksheet 2. These

are
in a named range and form part of a drop down list in Worksheet 1. What

I
want to happen is that when I select a value from any of the ranges from

A2
to A7 from cell G7 in Worksheet 1 (in the drop down menu), it will paste

the
value from E19 otherwise return 0.

I have got this so far:
=OR(IF(Sheet2!$A$2=G19,$E$19,"0"),IF(Sheet2!$A$3=G 19,$E$19,"0")), so as

you
see I am not really getting anywhere !

Any help would be gratefully received.

Best regards,

Duncan





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
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM
automatically fill in a range of cells Maarten Excel Discussion (Misc queries) 1 April 29th 05 11:14 AM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 0 April 7th 05 12:47 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM
Excel - formula to calculate colored fill cells within a range wi. MA Excel Worksheet Functions 1 January 7th 05 04:06 PM


All times are GMT +1. The time now is 05:08 PM.

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"