Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gina_b
 
Posts: n/a
Default help needed with "if" statement


Hello there,

Based on the attached table, I'm trying to show a total for:

if column b is "outside services" AND column c is "1", then take the
total from column a.
(In other words, I'd like the function to know to add cells a2, a3 and
a5 to produce 212459).

I'm getting my "if" statements messed up somewhere and am wondering if
anyone could help me?

Thank you very much,
Gina


+-------------------------------------------------------------------+
|Filename: questions.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4163 |
+-------------------------------------------------------------------+

--
gina_b
------------------------------------------------------------------------
gina_b's Profile: http://www.excelforum.com/member.php...o&userid=29996
View this thread: http://www.excelforum.com/showthread...hreadid=496867

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Biff
 
Posts: n/a
Default help needed with "if" statement

Hi!

Try something like this:

=SUMPRODUCT(--(B1:B10="outside services"),--(C1:C10=1),A1:A10)

Better to use cells to hold the criteria:

D1 = outside services
E1 = 1

=SUMPRODUCT(--(B1:B10=D1),--(C1:C10=E1),A1:A10)

Adjust the ranges to suit. (just can't use entire columns like A:A)

Biff

"gina_b" wrote in
message ...

Hello there,

Based on the attached table, I'm trying to show a total for:

if column b is "outside services" AND column c is "1", then take the
total from column a.
(In other words, I'd like the function to know to add cells a2, a3 and
a5 to produce 212459).

I'm getting my "if" statements messed up somewhere and am wondering if
anyone could help me?

Thank you very much,
Gina


+-------------------------------------------------------------------+
|Filename: questions.doc |
|Download: http://www.excelforum.com/attachment.php?postid=4163 |
+-------------------------------------------------------------------+

--
gina_b
------------------------------------------------------------------------
gina_b's Profile:
http://www.excelforum.com/member.php...o&userid=29996
View this thread: http://www.excelforum.com/showthread...hreadid=496867



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
gina_b
 
Posts: n/a
Default help needed with "if" statement


Biff,
Thanks so much.
I'll give it a try and see what happens.
I REALLY appreciate it!
Thanks and Happy New Year,
Gina


--
gina_b
------------------------------------------------------------------------
gina_b's Profile: http://www.excelforum.com/member.php...o&userid=29996
View this thread: http://www.excelforum.com/showthread...hreadid=496867

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
"If" statement using "And" Amanda Excel Discussion (Misc queries) 2 December 28th 05 03:02 PM
much needed If/or statement help Yupkwondo Excel Discussion (Misc queries) 4 August 18th 05 02:45 AM
If Statement help needed please Ian Harris Excel Worksheet Functions 3 December 3rd 04 02:04 PM
If statement help needed Ian Harris Excel Worksheet Functions 2 December 3rd 04 11:36 AM
If statement needed Patsy Excel Worksheet Functions 1 November 4th 04 03:48 PM


All times are GMT +1. The time now is 05:38 AM.

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

About Us

"It's about Microsoft Excel"