Excel formula help for range

sasa26feb

New Member
Joined
Sep 9, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
PositionLocation 1Location 2Location 3Location 4Location 5Location 6
111121314151
221222324252
331323334353
441424344454
551525354555
661626364656
771727374757
881828384858
991929394959
10102030405060

I am trying to select a Position '1' if Location selected are in the range of (1,11,21,31,41,51), and same for other Position nos, I have used IF(OR(J15 = {1,11,21,31,41,51}),A15) function but in that range no is fixed. Can anyone help. What if I don't want to give range value manually.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Are your location values in sequence as shown? If so, notice that on each row under the locations, if you divide each value by 10 and take the remainder, you'll get the position number...except for position 10, so we can make a small adjustment using the MOD function:
=MOD(C11-1,10)+1
...where C11 is one of the location values
will produce the Position number.
 
Upvote 0

Forum statistics

Threads
1,214,830
Messages
6,121,831
Members
449,051
Latest member
excelquestion515

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