Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 45
Default Creating a Function in Excel 2003

I have a spreadsheet that first breaksdown expenses, between centers, ie
project or ministry, then secondly by expense type, ie cash or credit card,
then I need it to sum the column with actual $. I've tried to use the IF
function but I get error message...

=IF(D8:D99="x", IF(F8:F99="x",SUM(H8:H99)))

Can anyone please help me...

Thanks so much
--
Patti Lassiter
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Creating a Function in Excel 2003

Try
=SUMPRODUCT(--(D8:D99="x"),--(F8:F99="x"),H8:H99)

If this post helps click Yes
---------------
Jacob Skaria


"Patti" wrote:

I have a spreadsheet that first breaksdown expenses, between centers, ie
project or ministry, then secondly by expense type, ie cash or credit card,
then I need it to sum the column with actual $. I've tried to use the IF
function but I get error message...

=IF(D8:D99="x", IF(F8:F99="x",SUM(H8:H99)))

Can anyone please help me...

Thanks so much
--
Patti Lassiter

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Creating a Function in Excel 2003

You can use this array* formula:

=SUM(IF((D8:D99="x")*(F8:F99="y"),H8:H99))

*An array formula must be committed using the key combination of Ctrl-
Shift-Enter (CSE), rather than the usual <Enter. If you do this
correctly then Excel will wrap curly braces { } around the formula
when viewed in the formula bar - do not type these yourself. If you
subsequently amend or edit the formula, you must use CSE again.

The references "x" and "y" can be cell references which hold the
values.

Alternatively, you could try this:

=SUMPRODUCT((D8:D99="x")*(F8:F99="y"),H8:H99)

This does not need to be array-entered.

Remember to use absolute cell references for the ranges if you copy
the formula elsewhere (eg to pick up other values for "x" and "y").

Hope this helps.

Pete

On Sep 8, 7:08*pm, Patti wrote:
I have a spreadsheet that first breaksdown expenses, between centers, ie
project or ministry, then secondly by expense type, ie cash or credit card,
then I need it to sum the column with actual $. *I've tried to use the IF
function but I get error message...

=IF(D8:D99="x", IF(F8:F99="x",SUM(H8:H99)))

Can anyone please help me...

Thanks so much
--
Patti Lassiter


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
Creating a custom chart [Excel 2003] danhaman Charts and Charting in Excel 2 January 15th 13 01:27 PM
creating an IF macro in Excel 2003 Ronda Excel Worksheet Functions 7 December 11th 08 07:13 PM
Creating a Frame in Excel 2003 nicfd Excel Discussion (Misc queries) 1 October 7th 08 11:14 AM
creating hyperlink excel 2003 vba sweet_dreams Excel Discussion (Misc queries) 1 March 7th 06 11:40 AM


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