Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default If statement ... help needed.

Hi,

I have a spreadsheet that looks like this;

Rate Weeks Required
150 4.33 1
120 4.33 0

And this continues on for 34 lines.

I need to be able to get one total.

If the value in "Required" = 1 then Rate * Weeks .... adding a culmative total for all 34 rows.

Does anyone know of a single formula that can accomplish this or code for it.

Thanx
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default If statement ... help needed.

Assuming "Required" will only be either a 1 or a 0:
=SUMPRODUCT(A2:A35, B2:B35, C2:C35)

otherwise
=SUMPRODUCT(A2:A35, B2:B35, --(C2:C35=1))


"parsonsamie" wrote:


Hi,

I have a spreadsheet that looks like this;

Rate Weeks Required
150 4.33 1
120 4.33 0

And this continues on for 34 lines.

I need to be able to get one total.

If the value in "Required" = 1 then Rate * Weeks .... adding a
culmative total for all 34 rows.

Does anyone know of a single formula that can accomplish this or code
for it.

Thanx




--
parsonsamie

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default If statement ... help needed.

Try this:

=SUMPRODUCT(A2:A35,B2:B35,--(C2:C35=1))

Biff

"parsonsamie" wrote in message
...

Hi,

I have a spreadsheet that looks like this;

Rate Weeks Required
150 4.33 1
120 4.33 0

And this continues on for 34 lines.

I need to be able to get one total.

If the value in "Required" = 1 then Rate * Weeks .... adding a
culmative total for all 34 rows.

Does anyone know of a single formula that can accomplish this or code
for it.

Thanx




--
parsonsamie



  #4   Report Post  
Junior Member
 
Posts: 2
Default

Thank you both for your help .... so simple when you put it like that. :-)

Thanx
xx


Quote:
Originally Posted by T. Valko
Try this:

=SUMPRODUCT(A2:A35,B2:B35,--(C2:C35=1))

Biff

"parsonsamie" wrote in message
...

Hi,

I have a spreadsheet that looks like this;

Rate Weeks Required
150 4.33 1
120 4.33 0

And this continues on for 34 lines.

I need to be able to get one total.

If the value in "Required" = 1 then Rate * Weeks .... adding a
culmative total for all 34 rows.

Does anyone know of a single formula that can accomplish this or code
for it.

Thanx




--
parsonsamie
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
Help with IF statement needed Paul B. Excel Worksheet Functions 5 August 28th 06 05:19 PM
IF STATEMENT HELP NEEDED!!! Excel Dummy Excel Discussion (Misc queries) 2 December 30th 05 07:02 PM
help needed with "if" statement gina_b Excel Worksheet Functions 2 December 30th 05 04:24 PM
much needed If/or statement help Yupkwondo Excel Discussion (Misc queries) 4 August 18th 05 02:45 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:46 PM.

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"