Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Help with Value in one column...

If you have an ethnicity column I want to go to the next column and for all
of a certain ethnicity I want to return either a 1 or a zero.

Column A Column B
Hispanic 1
White 0
African American 0

In this case I am just quering for one ethnicity to which the second column
would display a1 for yes and or a 0 for no.

Any suggestions.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Help with Value in one column...

My suggestion is you ask a clear question. I can't figure out what you're
trying to do. Is it as simple as:
=if(a2="Hispanic",1,0)
?

If not, give some more examples.

Regards,
Fred

"David M" <David wrote in message
...
If you have an ethnicity column I want to go to the next column and for
all
of a certain ethnicity I want to return either a 1 or a zero.

Column A Column B
Hispanic 1
White 0
African American 0

In this case I am just quering for one ethnicity to which the second
column
would display a1 for yes and or a 0 for no.

Any suggestions.


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,203
Default Help with Value in one column...

In B1
=IF(A1="Hispanic",1,0)

Change "Hispanic" to whatever indicator actually shows up in A1.

Other possibilities you might run into later:
Any non-white
=IF(A1<"White",1,0)
Combination of 2 or more
=IF(OR(A1="Hispanic",A1="American Indian"),1,0)

Hope it helps you along with your project.

"David M" wrote:

If you have an ethnicity column I want to go to the next column and for all
of a certain ethnicity I want to return either a 1 or a zero.

Column A Column B
Hispanic 1
White 0
African American 0

In this case I am just quering for one ethnicity to which the second column
would display a1 for yes and or a 0 for no.

Any suggestions.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 698
Default Help with Value in one column...

Try this.

In J1 do a drop down the ethnicities.

With your ethnicity column starting in G9, in H9 enter this formula and pull
down as far as needed.

=IF(G9=$J$1,1,0)

Now when you select a different ethnic group in J1 it will put a 1 there and
0 for the others.

HTH
Regards,
Howard

"David M" <David wrote in message
...
If you have an ethnicity column I want to go to the next column and for
all
of a certain ethnicity I want to return either a 1 or a zero.

Column A Column B
Hispanic 1
White 0
African American 0

In this case I am just quering for one ethnicity to which the second
column
would display a1 for yes and or a 0 for no.

Any suggestions.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
divide column(x) by column(y) to give column(x/y) in excel? James New Users to Excel 2 April 24th 23 11:46 AM
Referencing date column A & time column B to get info from column TVGuy29 Excel Discussion (Misc queries) 1 January 24th 08 09:50 PM
Return text in Column A if Column B and Column K match jeannie v Excel Worksheet Functions 4 December 13th 07 07:36 PM
Based on a condition in one column, search for a year in another column, and display data from another column in the same row look [email protected] Excel Discussion (Misc queries) 1 December 27th 06 05:47 PM
what formula do i put for column m = column k minus column l in e. jenniss Excel Discussion (Misc queries) 5 January 6th 05 08:18 PM


All times are GMT +1. The time now is 08:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"