Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Return a cell reference as a result of an IF formula

I am using an IF logical. If the result is true, I would like to return the
SUM of a range or cells. Or at the very least return cell reference. eg
=IF(K3<=DATE(2010,1,31),AND(K3=DATE(2010,1,1))) Since this is a true
statement, I would like it to return the SUM of A1:A10

Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Return a cell reference as a result of an IF formula

=if(and(date(2010,1,1)<=k3,k3<=date(2010,1,31)),su m(a1:a10),"whateveryouwant")

Because you're using the complete month, you have other choices, too:

=if(text(k3,"yyyymm")="201001",sum(a1:a10),"not in Jan 2010")

=if(and(month(k3)=1,year(k3)=2010),sum(a1:a10"),"a nything else?")


Larry G wrote:

I am using an IF logical. If the result is true, I would like to return the
SUM of a range or cells. Or at the very least return cell reference. eg
=IF(K3<=DATE(2010,1,31),AND(K3=DATE(2010,1,1))) Since this is a true
statement, I would like it to return the SUM of A1:A10

Thank you.


--

Dave Peterson
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 to return a cell reference as result of a formula Bruce Williams Excel Worksheet Functions 2 February 18th 09 04:12 AM
My formulas return the formula not a result in the cell 1stcoast Excel Worksheet Functions 7 April 12th 08 10:14 PM
Advanced formula - Return result & Show Cell Reference of result Irv Excel Worksheet Functions 7 May 6th 06 03:36 AM
Enter a formula to return a result from a cell LMB New Users to Excel 2 December 4th 05 02:29 AM
reference the result of a formula in a text formatted cell jpwinston Excel Discussion (Misc queries) 1 February 7th 05 05:33 PM


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