Sumproduct Formula Result

E

excellover

HI Bernard , and every one :
I tried to use your formula here is the outcome :-

.................A..............B..............C
1..............MIKE........................300
2..............JERRY.......................350
3..............ADAM.......................400
4..............ADAM......MAZDA......500
5..............ADAM......TOYOTA.....450

The formula :-

=IF(ISNA(MATCH(F3,B1:B5,FALSE)),SUMPRODUCT((A1:A5= F2)*(C1:C5)),
SUMPRODUCT((A1:A5=F2)*(B1:B5=F3)*(C1:C5))

1) The example is that those drivers regardles of what car they driv
will be paid the amount MATCHING their NAME in column C1:C5 if there i
no car make in Column B1:B5 ( e.g MIKE,JERRY and ADAM ) and regardles o
the CAR MAKE entry in F3.

2) For ADAM if he drives MAZDA OR TOYOTA he will be paid differen
amount as in cell C4 AND C5, but if HE drives any other CAR then h
will be paid 400 regardles of the CAR MAKE entry in F3.

BTW = the F3 WILL NEVER BE BLANK .

F2 = ADAM
F3 = JEEP

( SINCE ANY OTHER MAKE DOES NOT MATTER FOR ADAM EXCEPT IF FOR MAZDA AN
TOYOTA ) IT SHOULD PICK UP THE VALUE 400

THE RESULT I GOT WITH THE Formula above is = 1350 which is the tota
sum of ADAM ( I was expecting the formula to pick up the value 40
disregarding the F3 entry since THE MAKE FOR ADAM IN THE CELL B3 I
BLANK.

F2 = ADAM
F3 = MAZDA

( THE FORMULA CORRECTLY PICKED UP VALUE 500 )


How can I format the formula to disregard the entry in F3 if THERE AR
BLANK CELLS IN B1:B5 and pick the value in C1:C5 FOR the entry in F2 .

I hope I made my example clear. I am sorry for this long explanation
but I could not find any other way.

Thank you all again for all your help
 
A

Aladin Akyurek

F4:

=INDEX($C$2:$C$6,MATCH(F2&","&IF(OR(F3={"MAZDA","TOYOTA"}),F3,""),$A$2:$A$6&","&$B$2:$B$6,0))

which you need to confirm with control+shift+enter instead of just with
enter:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sumproduct Function 2
Sumproduct Function 2
Sumproduct Function 1
Opposite direction 9
Variable Sumproduct Range 6
Creation of a formula 2
HELP please... easy function 2
Sumproduct in Excel 2003 3

Top