LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Captain Grey
 
Posts: n/a
Default And,if,true Help


This is what I want to achieve:

If the value in A1:A10 = ABC and the value in B1:B10 = DEF, then add
the corresponding values in C1:C10 and multiply that by D1

I have tried:
=SUM(IF((A1:A10,"ABC")*(B1:B10,"DEF"),C1:C10,0))
but that doesn't work, and I haven't even got to multiplying the total
of the sum_range.

Ultimately I need to complete that argument three times, where the
values in the A, B and D columns would differ.

i.e.

(IF (A1:A10 = ABC and B1:B10 = DEF) ADD (C1:C10)*D1) PLUS
(IF (A1:A10 = GHI and B1:B10 = JKL) ADD (C1:C1)*D2) PLUS
(IF (A1:A10 = MNO and B1:B10 = PQR) ADD (C1:C1)*D3)

Can this be achieved in Excel? Is an IF statement the correct syntax?

Any help appreciated.


--
Captain Grey
------------------------------------------------------------------------
Captain Grey's Profile: http://www.excelforum.com/member.php...o&userid=33804
View this thread: http://www.excelforum.com/showthread...hreadid=535751

 
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



All times are GMT +1. The time now is 12:02 PM.

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"