Multiple requirements in formula for cell - how?

Jools1961

New Member
Joined
Feb 24, 2005
Messages
4
Cell R5 = IF A1 is less than B2 and more than B3 then R5 should equal F1, or if A1 is less than C2 and more than C3, then R5 should equal F2, or if A1 is less than D2 and more than D3, then R5 should equal F3.

Seems simple enough but I dont know how to do it. Can anyone help?Thanks heaps.
:eek:
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi

=IF(AND(A1<B2,A1>B3),F1,IF(AND(A1<C2,A1>C3),F2,IF(AND(A1<D2,A1>D3),F3,"No match")))

It will put in No Match if things don't work.


Tony
 
Upvote 0
Hi, acw,

I posted this about 10 minutes ago
=IF(AND(A1<B2,A1>B3),F1,IF(AND(A1<C2,A1>C3),F2,IF(AND(A1<D2,A1>D3),F3,"")))
blank if criteria not matched

then deleted it because I saw your post

but your solution doesn't work for me: is this a "short-syntax"
AND(A1B3) ?

kind regards,
Erik
 
Upvote 0
Erik

Don't know what happened. The formula should be

=IF(AND(A1<B2,A1>B3),F1,IF(AND(A1<C2,A1>C3),F2,IF(AND(A1<D2,A1>D3),F3,"No match")))


Don't know why the <> symbols didn't appear.


Tony
 
Upvote 0
Hmm

Chunks of the formula are being deleted.

=IF(AND(A1<B2,A1>B3),F1,IF(AND(A1<C2,A1>C3),F2,IF(AND(A1<D2,A1>D3),F3,"No match")))


Tony
 
Upvote 0
Try again

Code:
=IF(AND(A1<B2,A1>B3),F1,IF(AND(A1<C2,A1>C3),F2,IF(AND(A1<D2,A1>D3),F3,"No match")))
 
Upvote 0
Sorry, Julie,

My reply was also send with<> signs :confused:
Is this sheetsample clear to you?
kind regards,
Erik
Map1
ABCDEF
113F1
2121416F2
3F2101112F3
Blad1
 
Upvote 0

Forum statistics

Threads
1,221,657
Messages
6,161,088
Members
451,684
Latest member
smllchng5

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