Countif() in Let() Query

mart_mrexcel

Active Member
Joined
Aug 23, 2008
Messages
310
Office Version
  1. 365
Platform
  1. Windows
I am trying to check if any of the "name" result in Let() is TRUE then return TRUE. When I use the COUNTIF() formula inside the Let(), it gives me #VALUE! error.

ABCDE
1
Group​
Type​
Total​
2StationaryNote Book8=LET(Group,A2="Computer",
LET(Type,B2="Note Book",
LET(Total,C2<50,
IF(COUNTIFS((Group,Type,Total),TRUE)>0,TRUE,FALSE))))
3
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Usually, you don't need more than one LET. Secondly, COUNTIFS takes in a criteria range and criteria alternately so your syntax isn't quite right. Try:
Excel Formula:
=LET(Group,A2="Computer",Type,B2="Note Book",Total,C2<50,OR(Group,Type,Total))

I'm not sure if this is a smaller question of a bigger question, but since there's no repeated calculation, you don't need LET.
Excel Formula:
=OR(A2="Computer",B2="Note Book",C2<50)
 
Upvote 1
Solution
Usually, you don't need more than one LET. Secondly, COUNTIFS takes in a criteria range and criteria alternately so your syntax isn't quite right. Try:
Excel Formula:
=LET(Group,A2="Computer",Type,B2="Note Book",Total,C2<50,OR(Group,Type,Total))

I'm not sure if this is a smaller question of a bigger question, but since there's no repeated calculation, you don't need LET.
Excel Formula:
=OR(A2="Computer",B2="Note Book",C2<50)
Actually, It's a bigger question. Thank you so much for assistance, this works perfectly. Have a great day ahead
 
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,139
Members
453,021
Latest member
Justyna P

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