Jump to content

 
Photo

Attributes

- - - - -

  • Please log in to reply
2 replies to this topic

#1
nooos

nooos

    Contributor

  • Validated Member
  • PipPip
  • 22 posts
  • Cambodia

Hi all friend
I am a new user for ArcGIS.
I had 1 field(1 to 200) so I want to select odd number only.
Ex:I select 1,3,5,7,9,.........199
How should I select by attributes like this?????
Please help me big big big.

#2
gaborr

gaborr

    Newbie

  • New Member
  • Pip
  • 1 posts
  • Gender:Male
  • Hungary

Hi all friend
I am a new user for ArcGIS.
I had 1 field(1 to 200) so I want to select odd number only.
Ex:I select 1,3,5,7,9,.........199
How should I select by attributes like this?????
Please help me big big big.


Hi!
One way is using the MODULO function.
Mod("YOURFIELDNAME", 2 ) = 1 or maybe [YOURFIELDNAME] Mod 2 = 1 should work, but keep in mind the different syntax of fieldnames for different datasets!
I hope You find it helpful, have a nice day!
Gabor

#3
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,303 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

Another way is to create a join table, in e.g. excel, and work with that. It would be easy to set an additional field "IsOdd" there (using an excel formula).
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->