ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Matching cells and adding a value to the match. (https://www.excelbanter.com/excel-worksheet-functions/146030-matching-cells-adding-value-match.html)

Sibbs

Matching cells and adding a value to the match.
 
High guys, bit new to this Excel malarky so any help would be fantastic.

I am tring to set a score prediction leauge for our office.

What I would like to do is this

IF D3 & D4 (Home and away team prediction) MATCH C3 & C4 (Home and Away Team
Actual Score) THEN ADD 4 POINTS TO I3.

IF D3 OR D4 ARE GREATER THAN C3 OR C4 THEN ADD 1 POINT TO I3.

So if the correct score is predicted then 4 points are awarded but if the
HOME or AWAY win/draw is predicted but not corrct score then 1 point is
awarded.

About as clear as mud but any help would be really appreciated.



Mike H

Matching cells and adding a value to the match.
 
Struggled understanding the rules for devising a formula but here goes:-

=IF(AND(D3=C3,D4=C4),4,IF(OR(C3<D3,C4<D4),1))

With regard to the 1 point bit you say:-

IF D3 OR D4 ARE GREATER THAN C3 OR C4 THEN ADD 1 POINT TO I3

I've assumed you mean different too and not just greater than because
otherwise there would be no rule to cover less-than.

Mike



"Sibbs" wrote:

High guys, bit new to this Excel malarky so any help would be fantastic.

I am tring to set a score prediction leauge for our office.

What I would like to do is this

IF D3 & D4 (Home and away team prediction) MATCH C3 & C4 (Home and Away Team
Actual Score) THEN ADD 4 POINTS TO I3.

IF D3 OR D4 ARE GREATER THAN C3 OR C4 THEN ADD 1 POINT TO I3.

So if the correct score is predicted then 4 points are awarded but if the
HOME or AWAY win/draw is predicted but not corrct score then 1 point is
awarded.

About as clear as mud but any help would be really appreciated.



Teethless mama

Matching cells and adding a value to the match.
 
=IF(D3&D4=C3&C4,4,1)


"Sibbs" wrote:

High guys, bit new to this Excel malarky so any help would be fantastic.

I am tring to set a score prediction leauge for our office.

What I would like to do is this

IF D3 & D4 (Home and away team prediction) MATCH C3 & C4 (Home and Away Team
Actual Score) THEN ADD 4 POINTS TO I3.

IF D3 OR D4 ARE GREATER THAN C3 OR C4 THEN ADD 1 POINT TO I3.

So if the correct score is predicted then 4 points are awarded but if the
HOME or AWAY win/draw is predicted but not corrct score then 1 point is
awarded.

About as clear as mud but any help would be really appreciated.



Andy Sibbs

Matching cells and adding a value to the match.
 
Thanks people, works fine, Cheers

"Teethless mama" wrote:

=IF(D3&D4=C3&C4,4,1)


"Sibbs" wrote:

High guys, bit new to this Excel malarky so any help would be fantastic.

I am tring to set a score prediction leauge for our office.

What I would like to do is this

IF D3 & D4 (Home and away team prediction) MATCH C3 & C4 (Home and Away Team
Actual Score) THEN ADD 4 POINTS TO I3.

IF D3 OR D4 ARE GREATER THAN C3 OR C4 THEN ADD 1 POINT TO I3.

So if the correct score is predicted then 4 points are awarded but if the
HOME or AWAY win/draw is predicted but not corrct score then 1 point is
awarded.

About as clear as mud but any help would be really appreciated.




All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com