Formula Help

njones3

New Member
Joined
Apr 25, 2019
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have the below formula for a calculated column in a table but it doesn't seem to be working correctly, is there an obvious error?

=IF(AND(BG2="Sales Manager",OR([@[Vol NB + SA]]="<=3000")),"3000",IF(AND(BG2="Sales Negotiator",OR([@[Vol NB + SA]]=">=3000")),"2900",(BJ2)))

Thanks in advance,
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
do you have spaces around sales manager etc, not sure you need OR either
 
Upvote 0
Remove the equals sign
OR requires more than one condition (usually), if there's only one then you dont need an OR
Here's an example of an AND using greater/less than

=AND(A1 >=17, A1 <= 51)

Here's an example of OR condition
=OR(A1="Rainy",A1="Sunny")

No extra equals and values not within quotes
A single cell reference doesnt brackets
BJ2 not (BJ2)

Try this (though am not familiar with Structured references, the @ sign)

=IF(AND(BG2="Sales Manager",[@[Vol NB + SA]]<=3000),3000,IF(AND(BG2="Sales Negotiator",[@[Vol NB + SA]]>=3000),2900,BJ2))
 
Last edited:
Upvote 0
Thank you very much, that has worked perfectly.

Think I was trying to over complicate it!
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,734
Members
449,094
Latest member
dsharae57

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