IF & AND Functions error

Johnpow

New Member
Joined
Feb 19, 2017
Messages
18
Hello all,

Can someone correct the below formula please?

Message I get is The formula you typed contains and error.

Code:
 =IF(AND($P$6="F1",=IF(T15>$AH$13,$AJ$12,IF(AND($P$6="F1",IF(T15>$AF$13,$AH$12,IF(AND($P$6="F1",IF(T15=$AL$12,"",$AF$12)))

Maybe I need different functions?
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi, Im just giving you example how should it return, IF with AND

=If(Logical test,if condition is true then your 1st answer here,if condition is not true then your 2nd answer here)

=AND(Cell Reference i.e. P6 = "Value 1", P6 = "Value 2")

Place this AND in IF formula, Logical test area.. Like,
=If(AND(Cell Reference i.e. P6 = "Value 1", P6 = "Value 2"),if condition is true then your 1st answer here,if condition is not true then your 2nd answer here)
 
Upvote 0
Take the "=" out after the first comma - you are introducing a second IF function, but you have presumably copied and pasted it from another formula and you don't need the leading "=".
 
Upvote 0
Trying to rate players in a footy team using a KPI points system. Fairly complicated.
I have a workbook to illustrate but cannot load to the forum.
Suggestions how I can provide the Wbook please
 
Upvote 0
Hi John, i think you're trying this..

Code:
=IF(AND($P$6="F1",T15>$AH$13),$AJ$12,IF(AND($P$6="F1",T15>$AF$13),$AH$12,IF(AND($P$6="F1",T15=$AL$12),"",$AF$12)))
 
Upvote 0
I can't see how the Google Sheet relates to your question. Have you tried VBABEGINER's formula? I don't think I'm going to be able to help here. Good luck!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top