Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 683
Default IF Function returning range

I'm trying to create an IF Function that returns info from a range of cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill in
with info from the HUD worksheet cells A1 through C100. Not sure what I am
doing wrong. Is the IF Function even the best function to use for this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default IF Function returning range

You have the right idea, in general. In A6, enter:

=IF($C$4="HUD",HUD!A1,"")

and then copy down/across

--
Gary''s Student - gsnu200805


"Brian" wrote:

I'm trying to create an IF Function that returns info from a range of cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill in
with info from the HUD worksheet cells A1 through C100. Not sure what I am
doing wrong. Is the IF Function even the best function to use for this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 683
Default IF Function returning range

Thank you very much. Now I have a couple more questions. I copied down and
across as instructed and now wherever there is nothing in the cell it puts a
0. Also, if I want the "HUD" to be interchangeable, what do I do? For
example, HUD may be Tax Credit or something else. I have 15 posibilited of
what it could be and what I am wanting is, depending on which one of the 15
it is in C4, then it returns a different range of cells from a different
worksheet? Am I asking too much? Sorry, I'm not too familiar with this.

Thank you.

"Gary''s Student" wrote:

You have the right idea, in general. In A6, enter:

=IF($C$4="HUD",HUD!A1,"")

and then copy down/across

--
Gary''s Student - gsnu200805


"Brian" wrote:

I'm trying to create an IF Function that returns info from a range of cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill in
with info from the HUD worksheet cells A1 through C100. Not sure what I am
doing wrong. Is the IF Function even the best function to use for this?

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default IF Function returning range

cells A6 through C106
cells A1 through C100


A6:C106 = 101 rows
A1:C100 = 100 rows

Select the range A6:C105 so that A6 is the active cell.

The active cell is the one in the selected range that is not "blueish".

Type this array formula:

=IF(C4="hud",HUD!A1:C100,"")

Now, instead of hitting the ENTER key hold down both the CTRL key and the
SHIFT key then hit ENTER.


--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
I'm trying to create an IF Function that returns info from a range of
cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill in
with info from the HUD worksheet cells A1 through C100. Not sure what I
am
doing wrong. Is the IF Function even the best function to use for this?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 683
Default IF Function returning range

Thank you very much. Now I have a couple more questions. I copied down and
across as instructed and now wherever there is nothing in the cell it puts a
0. Also, if I want the "HUD" to be interchangeable, what do I do? For
example, HUD may be Tax Credit or something else. I have 15 posibilited of
what it could be and what I am wanting is, depending on which one of the 15
it is in C4, then it returns a different range of cells from a different
worksheet? Am I asking too much? Sorry, I'm not too familiar with this.

Thank you.


"T. Valko" wrote:

cells A6 through C106
cells A1 through C100


A6:C106 = 101 rows
A1:C100 = 100 rows

Select the range A6:C105 so that A6 is the active cell.

The active cell is the one in the selected range that is not "blueish".

Type this array formula:

=IF(C4="hud",HUD!A1:C100,"")

Now, instead of hitting the ENTER key hold down both the CTRL key and the
SHIFT key then hit ENTER.


--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
I'm trying to create an IF Function that returns info from a range of
cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill in
with info from the HUD worksheet cells A1 through C100. Not sure what I
am
doing wrong. Is the IF Function even the best function to use for this?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default IF Function returning range

I copied down and across as instructed

Ok, that means you used Gary's suggestion.

wherever there is nothing in the cell it puts a 0.


And you probably want a blank cell, not a 0?

I have 15 posibilited [sic]


Are each of these on its own sheet of the same name and the range is
*exactly* the same for all 15?

--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
Thank you very much. Now I have a couple more questions. I copied down and
across as instructed and now wherever there is nothing in the cell it puts
a
0. Also, if I want the "HUD" to be interchangeable, what do I do? For
example, HUD may be Tax Credit or something else. I have 15 posibilited of
what it could be and what I am wanting is, depending on which one of the
15
it is in C4, then it returns a different range of cells from a different
worksheet? Am I asking too much? Sorry, I'm not too familiar with this.

Thank you.


"T. Valko" wrote:

cells A6 through C106
cells A1 through C100


A6:C106 = 101 rows
A1:C100 = 100 rows

Select the range A6:C105 so that A6 is the active cell.

The active cell is the one in the selected range that is not "blueish".

Type this array formula:

=IF(C4="hud",HUD!A1:C100,"")

Now, instead of hitting the ENTER key hold down both the CTRL key and the
SHIFT key then hit ENTER.


--
Biff
Microsoft Excel MVP


"Brian" wrote in message
...
I'm trying to create an IF Function that returns info from a range of
cells.
This is what I have so far:

=IF(C4="HUD",HUD!A1:C100,FALSE)

If a certain cell (C4) is HUD then I want cells A6 through C106 to fill
in
with info from the HUD worksheet cells A1 through C100. Not sure what
I
am
doing wrong. Is the IF Function even the best function to use for
this?






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
Returning a range using IF Alan Excel Worksheet Functions 3 September 12th 07 11:08 PM
OFFSET function in named range returning wrong # of rows Heidi Excel Worksheet Functions 5 March 20th 07 10:15 PM
Returning value from a range of data tinagi Excel Discussion (Misc queries) 1 February 20th 06 03:05 AM
Returning a range ledzepe Excel Discussion (Misc queries) 7 February 17th 06 10:08 PM
Returning a value for a number in a range Derek Excel Discussion (Misc queries) 1 July 26th 05 04:47 PM


All times are GMT +1. The time now is 01:19 PM.

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"