Help With Formula

VinceF

Board Regular
Joined
Sep 22, 2007
Messages
199
Office Version
  1. 2016
Platform
  1. Windows
Greetings,

This formula is not working. A suggestion on how to make it work or a different formula that works would be much appreciated.
Both J38 & K12 could equal 1 thru 10

=IF($J$38={1,2,3,4,5,6,7,8,9,10},IF($K12={1,2,3,4,5,6,7,8,9,10},TRUE,FALSE))

Thank You
VinceF
Office 2016
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Excel Formula:
=IF(SUMPRODUCT(--($J$38={1,2,3,4,5,6,7,8,9,10})),IF(SUMPRODUCT(--($K12={1,2,3,4,5,6,7,8,9,10})),TRUE,FALSE))
 
Upvote 0
A little shorter option.
=IF(SUM((AND($J$38>0,$J$38<11))*(AND($K$12>0,$K$12<11)))=1,TRUE)
 
Upvote 0
Solution
Another option
Excel Formula:
=AND(OR($J$38=ROW($A$1:$A$10)),OR($K12=ROW($A$1:$A$10)))
 
Upvote 0
A little shorter option.
=IF(SUM((AND($J$38>0,$J$38<11))*(AND($K$12>0,$K$12<11)))=1,TRUE)
Thank you all for the formulas, all 3 of them worked but I went with this one...very much appreciated
VinceF
 
Upvote 0
Glad we could help & thanks for the feedback.

You could also shorten that formula as there is no need for the IF.
Excel Formula:
=SUM((AND($J$38>0,$J$38<11))*(AND($K$12>0,$K$12<11)))=1
 
Upvote 0

Forum statistics

Threads
1,224,825
Messages
6,181,191
Members
453,021
Latest member
pingpong7117

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