Help with an IF formula

BMR

New Member
Joined
Jul 19, 2011
Messages
21
I have a spreadsheet of approximately 20,000 rows and 50 columns. In Column C I have a list of SKUs that look like the following.


10001
10001B1
10001B2
100001B3
100002
100003
100003B1
100003B2
100003B3
100003B4

and so on. The B1,B2, etc are for additional boxes. The highest it goes up to is B7.

In Column J, I am numbering rows with a SKU with B_ in Column C with a 0, and leaving the others blank. I would like to have a formula that can do this for me.

So if in Column C, Row 72, there is a 70001B2, I want that same row in Column J to have a 0. If there is a 700003, I want that same row in Column J to be blank.

Can anyone help?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Supposing your data starts in C2 in J2 type in this formula:
=IF(ISNUMBER(FIND("B",C2,1)),0,"")
Is this what you are after?
 
Upvote 0

Forum statistics

Threads
1,223,715
Messages
6,174,064
Members
452,542
Latest member
Bricklin

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