Find all odd numbers in column and move them to a new column

SOLTEC

Board Regular
Joined
Feb 11, 2015
Messages
195
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
I have column B where are cells with starting odd and even numbers. I need a formula to find all cell rows that start with an odd number, then move those cell rows to column A. Thank you in advance
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
That is a bit vague: is the number of digits fixed or does it vary? do you want us to just look at just the first digit or all the digits? Is the content of the cells text or is it numbers? Is it just numbers in the cells or is there something else after the numbers? What result do you want? TRUE/FALSE? the value of the number ??
 
Upvote 0
How about
Fluff.xlsm
AB
1
2191679222843
3556516191679
4106316556516
5121815106316
6324052266957
7186145434885
8185593121815
9339743324052
10570455186145
11344066213053
12393828185593
13306977339743
14519486570455
15175927344066
16111374393828
17182732306977
18180398519486
19304059175927
20391570111374
21160695182732
22339364408433
23149050180398
24395353304059
25303584391570
26319585160695
27391801295836
28175549283934
29179942339364
30279020
31149050
32395353
33303584
34319585
35224838
36391801
37430083
38226926
39175549
40179942
Data
Cell Formulas
RangeFormula
A2:A29A2=FILTER(B2:B40,ISODD(LEFT(B2:B40)))
Dynamic array formulas.
 
Upvote 0
Not a formula.
Code:
Sub Maybe()
Dim c As Range
    For Each c In Range("B2:B" & Cells(Rows.Count, 2).End(xlUp).Row)
        If Left(c, 1) Mod 2 <> 0 Then
            c.Offset(, -1).Value = c.Value
            c.Value = ""
        End If
    Next c
Range("A:B").SpecialCells(xlCellTypeBlanks).Delete Shift:=xlUp
End Sub
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,751
Members
448,989
Latest member
mariah3

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