A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Sumif on Formula instead of Value



 
 
Thread Tools Display Modes
  #1  
Old May 30th, 2006, 04:48 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Sumif on Formula instead of Value

What I'm looking for is a way to sum the cells that contain =Ceiling.

I've tried SUMIF(range,"*CEILING*",range) but the formula returns 0. I'm
guessing it has to do with the fact that it is looking at the resulting value
of the cell instead of the formula.

Does anybody know if there is a way to have it search the formula?

Thanks in advance.
  #2  
Old May 30th, 2006, 04:57 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Sumif on Formula instead of Value

If CEILING is a range name for a single value, try this:

=SUMIF(range1,CEILING,range2)
That will sum the range2 items where the range1 items equal the value of
CEILING.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"adodson" wrote:

What I'm looking for is a way to sum the cells that contain =Ceiling.

I've tried SUMIF(range,"*CEILING*",range) but the formula returns 0. I'm
guessing it has to do with the fact that it is looking at the resulting value
of the cell instead of the formula.

Does anybody know if there is a way to have it search the formula?

Thanks in advance.

  #3  
Old May 30th, 2006, 05:13 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Sumif on Formula instead of Value

Sorry, I wasn't clear -- CEILING refers to the function inside Excel to round
to a given number.

An example of a cell I would want it to sum is:
=CEILING(A24,5)

"Ron Coderre" wrote:

If CEILING is a range name for a single value, try this:

=SUMIF(range1,CEILING,range2)
That will sum the range2 items where the range1 items equal the value of
CEILING.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"adodson" wrote:

What I'm looking for is a way to sum the cells that contain =Ceiling.

I've tried SUMIF(range,"*CEILING*",range) but the formula returns 0. I'm
guessing it has to do with the fact that it is looking at the resulting value
of the cell instead of the formula.

Does anybody know if there is a way to have it search the formula?

Thanks in advance.

  #4  
Old May 30th, 2006, 05:22 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Sumif on Formula instead of Value

I don't believe Excel has any built-in functions that scan cell formula
structures.

For that functionality you'd likely need a VBA solution.
***********
Regards,
Ron

XL2002, WinXP


"adodson" wrote:

Sorry, I wasn't clear -- CEILING refers to the function inside Excel to round
to a given number.

An example of a cell I would want it to sum is:
=CEILING(A24,5)

"Ron Coderre" wrote:

If CEILING is a range name for a single value, try this:

=SUMIF(range1,CEILING,range2)
That will sum the range2 items where the range1 items equal the value of
CEILING.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"adodson" wrote:

What I'm looking for is a way to sum the cells that contain =Ceiling.

I've tried SUMIF(range,"*CEILING*",range) but the formula returns 0. I'm
guessing it has to do with the fact that it is looking at the resulting value
of the cell instead of the formula.

Does anybody know if there is a way to have it search the formula?

Thanks in advance.

  #5  
Old May 30th, 2006, 05:28 PM posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: n/a
Default Sumif on Formula instead of Value


You could use a helper column inserted to the right of your range and
the GET.CELL macro. First define a name "ShowFormula" using the
following reference.

=GET.CELL(6,INDIRECT("RC[-1]",FALSE))

In the first cell of the helper column type the formula =ShowFormula
and copy down your range. This will populate that with the formula of
the cell to the left. Then you can use the COUNTIF funtion. So say
your range to find the formula is A1:A10 and your helper column is
B1:B10 then:

=COUNTIF(B1:B10,"*CEILING*)


Does that help?

Steve


--
SteveG
------------------------------------------------------------------------
SteveG's Profile: http://www.excelforum.com/member.php...fo&userid=7571
View this thread: http://www.excelforum.com/showthread...hreadid=546764

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with sumif formula with multiple critera Matt Worksheet Functions 4 October 13th, 2007 06:56 PM
Getting Excel whilst using the sumif formula to search for part of a word Newbie81 General Discussion 1 December 20th, 2005 01:56 PM
SumIF Formula Erika Worksheet Functions 3 June 3rd, 2005 01:58 AM
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove Worksheet Functions 7 July 1st, 2004 10:22 PM
SUMIF vs SUM(IF(..)) vs SUMPRODUCT Harlan Grove General Discussion 7 July 1st, 2004 10:22 PM


All times are GMT +1. The time now is 04:48 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.