IF Range

dgavin

Active Member
Joined
Feb 16, 2005
Messages
302
Can you help with the following forumula.

If "B" appears in range D18-D39 and any result is less than 5 in B18-B39, then "BACK" if not then ""
 
Put this formula in Row 18 of the column to display the "back" and copy it down as needed....

=IF(C18<>"b","",IF(SUMPRODUCT((B$18:B$39<5)*(D$18:D$39="b")),"back",""))
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Thank you seems to be working great.

One more amendment regarding any A's

can you add this into the formula.

If D18="A" then N18. I don't need to worry about anything being <5 like the B's.

Thanks
 
Upvote 0
Try this...

=IF(D18="a",N18,IF(D18<>"b","",IF(SUMPRODUCT((B$18:B$39<5)*(D$18:D$39="b")),"back","")))

By the way, I see I had a typo my first formula (corrected in the above formula)... I had used C18 by accident when I had meant D18.
 
Upvote 0
sorry Rick I made a mistake


If D18="A" then "BACK", again don't worry about anything being <5.
 
Upvote 0
Then we just change the N18 that was in error to "BACK" (which you now want)....

=IF(D18="a","BACK",IF(D18<>"b","",IF(SUMPRODUCT((B$18:B$39<5)*(D$18:D$39="b")),"BACK","")))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

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