Convert If(Or string to Arrays

Judoman

New Member
Joined
Nov 7, 2014
Messages
31
Office Version
  1. 2016
Platform
  1. Windows
I have a formula that lists several cells to look for the letter X. If X is in any single cell a text is displayed "Package Price" in K25.

Need formula to be converted from strings of cells to arrays.
Current formula: If(OR(E41=”X”,E42=”X”,E43=”X”,),”Package Price”,””)

Need new formula to make array of E41:E47, add another array of E57:E67 in the same formula, if any cell in arrays has an X then K25 should show "Package Price".

I used =IF(E41:E47, "X","Package Price","") But it only shows text when X is in E41
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
Good point. I use 3 different computers with 3 different Excel versions. In this case I'm using Excel 2016. Thanks for the headsup.
 
Upvote 0
Thanks for that.
How about
Excel Formula:
=IF(OR(COUNTIFS(E41:E47,"x"),COUNTIFS(E57:E67,"x")),"Package Price","")
 
Upvote 0
Solution
Works Perfectly.

Thanks for your help and quick response.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,883
Messages
6,175,167
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