Add two conditions in excel Formula.

palata123

New Member
Joined
Feb 28, 2013
Messages
5
Hello everybodey. I have finished my formula and till now its working everything, but i need to put a second condition inside that. Here is my formula to match a specific value in a row that have 2 conditions >=1.80 and <=1.9:
Formula: {=INDEX(A2:GR2,MATCH(TRUE,INDEX((A2:GR2>=1.8),0),0))}
I dont know where and how to put the second condition *(A2:GR2<=1.9)
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Hello everybodey. I have finished my formula and till now its working everything, but i need to put a second condition inside that. Here is my formula to match a specific value in a row that have 2 conditions >=1.80 and <=1.9:
Formula: {=INDEX(A2:GR2,MATCH(TRUE,INDEX((A2:GR2>=1.8),0),0))}
I dont know where and how to put the second condition *(A2:GR2<=1.9)

Did you try using the AND() formula?
instead of
(A2:GR2>=1.8)
you can try
AND((A2:GR2>=1.8), (A2:GR2<=1.9))
 
Upvote 0
Yes i have tryed adding AND many times in different places but it returns N/A, but im sure i havent place in the right form AND.
 
Upvote 0
Try

=INDEX(A2:GR2,MATCH(1,INDEX((A2:GR2>=1.8)*(A2:GR2<=1.9),0),0))

confirmed with just Enter (no need of Ctrl+Shift+Enter)

M.
 
Upvote 0
Uuuuuhhhh, mate you were so quick, thanks a lot for that, and to be honest i think i have tryed this one to becouse i remember to put that 1 after match(1 but i puted again true inside. Thanks a lot again.
 
Upvote 0
Uuuuuhhhh, mate you were so quick, thanks a lot for that, and to be honest i think i have tryed this one to becouse i remember to put that 1 after match(1 but i puted again true inside. Thanks a lot again.

You are welcome.

To use an AND condition in an array formula you should multiply the conditions - the multiplication yields an array of 1s and 0s.
Something like: {0,0,1,1,....0}. That's why i replaced TRUE by 1.

M.
 
Upvote 0

Forum statistics

Threads
1,223,884
Messages
6,175,174
Members
452,615
Latest member
bogeys2birdies

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