Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default Logical IF return a cell reference

I want to use a logical IF formula to return a cell range SUM, or at least a
cell reference. Can't seem to figure it out.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,520
Default Logical IF return a cell reference

It is always better to post the formula you tried explaining how the data is
arranged.

'The below formula returns the value from cell B1 if A1 = 1 or otherwise
returns blank
=IF(A1=1,B1,"")

The below formula will return the sum of cells B1:B10 if there is a text
"Yes" in cell A1; or otherwise returns blank
=IF(A1="YES",SUM(B1:B10),"")

--
Jacob


"Larry G" wrote:

I want to use a logical IF formula to return a cell range SUM, or at least a
cell reference. Can't seem to figure it out.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Logical IF return a cell reference

Say we want to sum B1 thru B100 if A1 is a one, otherwise sum C1 thru C100:

=SUM(IF(A1=1,B1:B100,C1:C100))

--
Gary''s Student - gsnu200909


"Larry G" wrote:

I want to use a logical IF formula to return a cell range SUM, or at least a
cell reference. Can't seem to figure it out.

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
Return result of IF logical test in a different cell navyraine Excel Worksheet Functions 1 July 20th 09 07:27 PM
Return cell reference rather than value Suzy Excel Discussion (Misc queries) 5 May 12th 09 04:54 PM
Check if text exists within a cell range and return logical vaule - possible? [email protected] Excel Discussion (Misc queries) 2 July 20th 07 02:29 AM
Return cell reference instead of value lmason Excel Discussion (Misc queries) 1 August 23rd 06 05:53 AM
Return value in cell above the reference Jean Excel Discussion (Misc queries) 4 May 31st 06 07:50 PM


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