Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default Cell reference for year in formula

The following formula works fine, but I want the year for the date within the
quotes to come from a cell reference. Does anyone know how I need to alter
the formula to make this happen? I've tried to replace the 09 with a cell
reference but have had no luck.

=SUMIFS('Check Register'!H2:H1000,'Check
Register'!B2:B1000,"3/31/09",'Check Register'!B2:B1000,"<4/15/09",'Check
Register'!D2:D1000,A43)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,440
Default Cell reference for year in formula

"3/31/09"

becomes

"3/31/"& A1

where A1 contains 09, so it has to be text, not a number. You can achieve
that by formatting the cell as text before you enter 09
If the year is the result of a calculation, (so it is the number 9) and is
in B1, then in A1 enter:

=TEXT(B1,"00")

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Cush" wrote in message
...
The following formula works fine, but I want the year for the date within
the
quotes to come from a cell reference. Does anyone know how I need to
alter
the formula to make this happen? I've tried to replace the 09 with a cell
reference but have had no luck.

=SUMIFS('Check Register'!H2:H1000,'Check
Register'!B2:B1000,"3/31/09",'Check Register'!B2:B1000,"<4/15/09",'Check
Register'!D2:D1000,A43)


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
How do I crate a function for week of year + year in same cell. patty ann Excel Worksheet Functions 1 March 16th 08 06:34 PM
need formula 4 %change on both neg and pos movemnt year to year co suesolotel Excel Discussion (Misc queries) 4 January 13th 08 12:19 AM
formula to change color of a cell when date is over a year old? jvmn New Users to Excel 2 June 27th 06 02:30 PM
Error in formula =YEAR(B4)-YEAR(A4) gives me #Value JulieD Excel Programming 0 September 17th 04 01:56 PM
Error in formula =YEAR(B4)-YEAR(A4) gives me #Value Pasting column width and row heights Excel Programming 0 September 17th 04 01:53 PM


All times are GMT +1. The time now is 07:45 AM.

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"