odd even house address list

wpc

New Member
Joined
Mar 9, 2009
Messages
1
I have an xls sheet with street addresses in each row. Assuming that the house number is in colum A, I would like to be able to copy the rows of odd number homes to one sheet and those of even number homes to another sheet. I am using excel 2007 which supports iseven and is odd function. =IF(ISEVEN(A1), A1,"") and =IF(ISODD(A1), A1,"") will give me the odd and even house numbers but I don't know where to go from here.

Thanks
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
AdvancedFilter with a function based criteria range will do what you want.

If your data is in Sheet1!A1:B10 (with a header in A1) and Sheet1!C:C is empty:
Leave Sheet1!D1 empty, put =ISEVEN(A2) in Sheet1!D2

Activate the sheet that you want the even numbers to go (Sheet2).
Press AdvancedFilter, check the Copy to other location box and use

Data Range: Sheet1$A$1:$B$10
Criteria range: Sheet1!$D$1:$D$2
Copy to range: Sheet2!$A$1

Done.
Use a different sheet and the formula =ISODD(A2) for the odd numbers records.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

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