Skip to main content

Multiple IF AND statements

  • December 21, 2022
  • 5 replies
  • 62 views

Forum|alt.badge.img+5

I'm trying to compare data from 2 columns to result in a rating. 

I'm trying to break it down first before going crazy with multiple IF AND statements. Below is the first working example:

IF(AND(A=100, B=100), 5, BLANK())

Below are the conditions

  1. IF A=100 AND B=100, rate 5
  2. IF A<100, A>=97 AND B<100, B>=97, rate 4
  3. IF A<97, A>=94 AND B<97, B>=94, rate 3

I have tried the following and it's not working

IF(AND(A=100, B=100), 5, IF(OR(AND(A<=100, A>=97), AND(B<=100,B>=78))), 4, BLANK()))

5 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Hm could you give this a shot?

IF( AND( A=100, B=100 ), 5, IF( AND( A<=100, A>=97 B<=100, B>=78 ), 4 ) )

TheTimeSavingCo
Forum|alt.badge.img+31

Hm could you give this a shot?

IF( AND( A=100, B=100 ), 5, IF( AND( A<=100, A>=97 B<=100, B>=78 ), 4 ) )

Missing comma after `A>=97`, sorry.  Can't edit posts if not I'd fix it


Forum|alt.badge.img+5
  • Author
  • Participating Frequently
  • January 12, 2023

Missing comma after `A>=97`, sorry.  Can't edit posts if not I'd fix it


Hi Adam, I tried this and it didn't work. I ended up doing it manually. 


TheTimeSavingCo
Forum|alt.badge.img+31

Hi Adam, I tried this and it didn't work. I ended up doing it manually. 


Roger that, glad you got it working


Forum|alt.badge.img+5
  • Author
  • Participating Frequently
  • January 12, 2023

Roger that, glad you got it working


Thanks for trying to help!