1 or 0 based on Column Reference

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
195
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have spreadsheet and I need to number default images with a 1 and all other with a 0(zero). The Column F has the values from 1:1 through 7000+:1. Any cell with a :1 is a default image and needs a 1 in the M Column. Any other number than :1 is a 0 (zero). Thank you for any and all assistance, it is greatly appreciated.

Here is the Spreadsheet cut


Cell Formulas
RangeFormula
A21
A31
A42
A52
A62
A72
A83
A93
A103
A113
A123
A133
A144
A154
A164
A174
A184
A194
A204
A215
A226
A235
A245
A255
A265
A277
A285
A298
A309
A3110
A325
A3311
A345
A358
A369
A3710
A3811
A395
A405
A4112
A425
A4313
B2Replacement Boot Laces
B3Replacement Boot Laces
B4Blousing Garters
B5Blousing Garters
B6Blousing Garters
B7Blousing Garters
B8GI Extreme Cold Weather Bunny Boots
B9GI Extreme Cold Weather Bunny Boots
B10GI Extreme Cold Weather Bunny Boots
B11GI Extreme Cold Weather Bunny Boots
B12GI Extreme Cold Weather Bunny Boots
B13GI Extreme Cold Weather Bunny Boots
B14Nylon Commando Wallet
B15Nylon Commando Wallet
B16Nylon Commando Wallet
B17Nylon Commando Wallet
B18Nylon Commando Wallet
B19Nylon Commando Wallet
B20Nylon Commando Wallet
B21Pepper Sprays Gel Sabre Red
B22Fire Master Fog Pepper Spray
B23Pepper Sprays Gel Sabre Red
B24Pepper Sprays Gel Sabre Red
B25Pepper Sprays Gel Sabre Red
B26Pepper Sprays Gel Sabre Red
B27Key Chain Pepper Spray
B28Pepper Sprays Gel Sabre Red
B29Cop Top Fog Cone Pepper Spray
B30Flip Top Stream Pepper Spray
B31Flip Top Cop Med Fog Cone Pepper Spray
B32Pepper Sprays Gel Sabre Red
B33Cop Top Stream Pepper Spray
B34Pepper Sprays Gel Sabre Red
B35Cop Top Fog Cone Pepper Spray
B36Flip Top Stream Pepper Spray
B37Flip Top Cop Med Fog Cone Pepper Spray
B38Cop Top Stream Pepper Spray
B39Pepper Sprays Gel Sabre Red
B40Pepper Sprays Gel Sabre Red
B41Police Magnum Sabre Red
B42Pepper Sprays Gel Sabre Red
B43Police Magnum Advanced 3 in 1 Formaula Sabre Red
C2Black
C3Sand
C4Olive Drab
C5Khaki
C6Black
C7Foliage Green
C14Olive Drab
C15Black
C16Woodland Camo
C17Digital Woodland
C18Terrain Digital
C19US Army Logo
C20USMC Logo
F21:1
F31:2
F42:1
F52:2
F62:3
F72:4
F83:1
F93:2
F103:3
F113:4
F123:5
F133:6
F144:1
F154:2
F164:3
F174:4
F184:5
F194:6
F204:7
F215:1
F226:1
F235:2
F245:3
F255:4
F265:5
F277:1
F285:6
F298:1
F309:1
F3110:1
F325:7
F3311:1
F345:8
F358:2
F369:2
F3710:2
F3811:2
F395:9
F405:10
F4112:1
F425:11
F4313:1
G210-01
G310-012
G410-50
G510-502
G610-505
G710-507
G810-89 04 W
G910-89 05 W
G1010-89 08 R
G1110-89 11 W
G1210-89 14 R
G1310-89 14 W
G1411-10
G1511-11
G1611-14
G1711-143
G1811-147
G1911-15
G2011-16
G2112-01
G2212-01F
G2312-02
G2412-025
G2512-027
G2612-028
G2712-02F
G2812-03
G2912-031F
G3012-032F
G3112-033F
G3212-035
G3312-03F
G3412-04
G3512-041F
G3612-042F
G3712-043F
G3812-04F
G3912-05
G4012-055
G4112-06
G4212-07
G4312-08
H21001
H310012
H41050
H510502
H610505
H710507
H81089
H91089
H101089
H111089
H121089
H131089
H141110
H151111
H161114
H1711143
H1811147
H191115
H201116
H211201
H221201F
H231202
H2412025
H2512027
H2612028
H271202F
H281203
H2912031F
H3012032F
H3112033F
H3212035
H331203F
H341204
H3512041F
H3612042F
H3712043F
H381204F
H391205
H4012055
H411206
H421207
H431208
I2099598100100
I3099598100124
I4099598105006
I5099598105020
I6099598105051
I7099598105075
I8099598108991
I9099598108953
I10099598108984
I11099598108199
I12099598108902
I13099598109141
I14099598111007
I15099598111106
I16099598111403
I17099598111434
I18099598111472
I19099598111502
I20099598111601
I21023063104140
I22099598312015
I23023063105147
I24023063755144
I25023063105154
I26023063102153
I27099598112028
I28023063102146
I29099598312312
I30099598312329
I31099598312336
I32023063751146
I33099598312039
I34023063101224
I35099598412418
I36099598412425
I37099598412432
I38099598412043
I39023063100227
I40023063700229
I41023063101200
I42023063501802
I43023063601212
J21.25
J31.25
J40.6
J50.6
J60.6
J70.6
J845
J945
J1045
J1145
J1245
J1345
J141.5
J151.5
J161.5
J171.5
J181.5
J192.5
J202.5
J214.5
J2218.5
J235.25
J245
J255.25
J265.25
J2710.75
J284.5
J2914
J3015.75
J3115.75
J326.75
J3314
J346.25
J3516.5
J3618.25
J3718.25
J3816.5
J393.5
J403.75
J417.5
J426.75
J437.5
K20
K30
K40
K50
K60
K70
K80
K90
K100
K110
K120
K130
K140
K150
K160
K170
K180
K190
K200
K210
K220
K230
K240
K250
K260
K270
K280
K290
K300
K310
K320
K330
K340
K350
K360
K370
K380
K390
K400
K410
K420
K430
L210
L310
L410
L510
L610
L710
L810
L910
L1010
L1110
L1210
L1310
L1410
L1510
L1610
L1710
L1810
L1910
L2010
L2110
L2210
L2310
L2410
L2510
L2610
L2710
L2810
L2910
L3010
L3110
L3210
L3310
L3410
L3510
L3610
L3710
L3810
L3910
L4010
L4110
L4210
L4310
M21
M30
M41
M50
M60
M70
M81
M90
M100
M110
M120
M130
M141
M150
M160
M170
M180
M190
M200
M211
M221
M230
M240
M250
M260
M271
M280
M291
M301
M311
M320
M330
M340
M350
M360
M370
M380
M390
M400
M411
M420
M430
D84
D95
D108
D1111
D1214
D1314
D293 OZ.
D303 OZ.
D313 OZ.
D333 OZ.
D354 OZ.
D364 OZ.
D374 OZ.
D384 OZ.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
No Gaz they're which image is primary and the 0's indicate a child that belongs to the primary.
 
Upvote 0
This just gave me all 0's all the way down. Did you notice that the column is not B, but F?
 
Upvote 0
Try this

=IF(RIGHT(B2,1)=1,1,0)
That will fail if there can be 11 (or 21, 31, etc) images under a default image. Also, your test was wrong... you tested a piece of text against the number 1 instead of a text 1. For your formula, look at the last 2 characters and check for ":1". You can simplify the resulting formula like this...

=0+(Right(F2,2)=":1")

Note I used F2, not B2 as that was the column those values were in.
 
Last edited:
Upvote 0
Rick,

Thank you, that did the trick. I appreciate your input and insight.
 
Upvote 0
Wynn,

The column is not B it is F, but thank you also for your input and time.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,971
Members
452,371
Latest member
Frana

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