LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
TimRegan
 
Posts: n/a
Default How to specify almost full-column arguments like A3:A

Hi All,

I have some header rows in a worksheet that are preventing a formula
from working. The formula is:

=SUMPRODUCT(--(MONTH('Income 04_05'!A:A)=B7),('Income 04_05'!D:D))

but it fails with a #NUM! error because the columns 'Income 04_05'!A:A
and 'Income 04_05'!D:D contain two rows of header text. I tried to
miss these out by specifying the full-column less the first two rows
as the argument, like this:

=SUMPRODUCT(--(MONTH('Income 04_05'!A3:A)=B7),('Income 04_05'!D3:D))

But this isn't valid (i.e. I get a #NAME? error). I've settled for:

=SUMPRODUCT(--(MONTH('Income 04_05'!$A$3:$A$9000)=B7),('Income
04_05'!$D$3:$D$9000))

but this is clearly a cludge. How would I specify the full-column but
without the first two rows as an argument to a function?

Thanks,

Tim.

PS Bonus kudos if you can also tell me why MONTH returns 1 if passed
an empty cell as an argument?
 
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
hide column but show chart Svetlana Charts and Charting in Excel 1 January 14th 05 09:49 AM
Column A is Town, Column B is names. How can Excel add & tell how. Cindy Charts and Charting in Excel 3 January 13th 05 07:27 PM
Change the width of a single column in a column chart Dave Charts and Charting in Excel 2 December 13th 04 07:25 PM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 2 November 27th 04 01:55 AM
How do I sort a column of formulas in Excel? Gordon Excel Discussion (Misc queries) 0 November 26th 04 03:19 PM


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