[solved] Excel IFS function with a range criteria?

Anonymous
2017-06-28T00:37:02+00:00

Hi,

I'm having some trouble with the IFS formula. I have tried both IFS and IF, without any success.

Basically, I'm pulling data with a random range of 1-100. 

If the data is less than (or equal to) "49", then I need to return the value "Too short!" 

If the data is equal to the range of "50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60", then I need to return the value "Perfect!"

If the data is greater than (or equal to) "61", then I need to return the value "Too long!"

I have managed to get the less than a greater than to work, and I have managed to get the equal to a range to work, BUT I can't seem to get these to work together. I need this function in one cell, and it's giving me a bit of a headache.

Can someone give me a hand here?

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vijay A. Verma 104.7K Reputation points Volunteer Moderator
    2017-06-28T01:34:20+00:00

    =IFS(A2<=49,"Too Short",A2>=61,"Too Long",A2<=60,"Perfect")

    =IF(A2>=61,"Too Long",IF(A2>=50,"Perfect","Too Short"))

    14 people found this answer helpful.
    0 comments No comments