Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
I'm trying to figure out a function for a column. I want column M to look at
column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
=IF(C1="black",1,IF(C1="red",1,0)) "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
See if this does what you are asking, paste in M1 or adapt for your first cell.
=IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Maybe this?
=--OR(C1="red",C1="black") That formula returns 1 for hits and 0 for misses. Is that something you can work with? *********** Regards, Ron XL2003, WinXP "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#5
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Steve's answer worked. but now I want this function to work for the entire
column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#6
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Just copy the formula and paste to the rest of column M - it will change each
row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#7
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
I seem to be having trouble with the paste part. Do I highlight the column
by clicking on the letter above it and pasting or do I manually highlight all the column and paste? Neither seem to be working for me. PS I'm heading off to work so you won't see any response to this until tomorrow but thanks for all the help. "Steve" wrote: Just copy the formula and paste to the rest of column M - it will change each row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#8
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Right click on M1, left click on copy.
Left click and hold n M2 and go down as far as you need, highlighting all the cells you want to contain the formula. Right click on M2. Left click on Paste. "cyrock1" wrote: I seem to be having trouble with the paste part. Do I highlight the column by clicking on the letter above it and pasting or do I manually highlight all the column and paste? Neither seem to be working for me. PS I'm heading off to work so you won't see any response to this until tomorrow but thanks for all the help. "Steve" wrote: Just copy the formula and paste to the rest of column M - it will change each row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#9
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Or just grab the fill handle of M1 and drag down as far as you wish.
Gord Dibben MS Excel MVP On Tue, 24 Jul 2007 11:40:03 -0700, Steve wrote: Right click on M1, left click on copy. Left click and hold n M2 and go down as far as you need, highlighting all the cells you want to contain the formula. Right click on M2. Left click on Paste. "cyrock1" wrote: I seem to be having trouble with the paste part. Do I highlight the column by clicking on the letter above it and pasting or do I manually highlight all the column and paste? Neither seem to be working for me. PS I'm heading off to work so you won't see any response to this until tomorrow but thanks for all the help. "Steve" wrote: Just copy the formula and paste to the rest of column M - it will change each row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#10
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
One of these days I'll remember to do it that way!!!
"Gord Dibben" wrote: Or just grab the fill handle of M1 and drag down as far as you wish. Gord Dibben MS Excel MVP On Tue, 24 Jul 2007 11:40:03 -0700, Steve wrote: Right click on M1, left click on copy. Left click and hold n M2 and go down as far as you need, highlighting all the cells you want to contain the formula. Right click on M2. Left click on Paste. "cyrock1" wrote: I seem to be having trouble with the paste part. Do I highlight the column by clicking on the letter above it and pasting or do I manually highlight all the column and paste? Neither seem to be working for me. PS I'm heading off to work so you won't see any response to this until tomorrow but thanks for all the help. "Steve" wrote: Just copy the formula and paste to the rest of column M - it will change each row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#11
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
I'm not sure what a"fill handle" is but all of the advice was helpful. Where do I rate the help as it saved me a lot of work and will save me even more in the future.. "Gord Dibben" wrote: Or just grab the fill handle of M1 and drag down as far as you wish. Gord Dibben MS Excel MVP On Tue, 24 Jul 2007 11:40:03 -0700, Steve wrote: Right click on M1, left click on copy. Left click and hold n M2 and go down as far as you need, highlighting all the cells you want to contain the formula. Right click on M2. Left click on Paste. "cyrock1" wrote: I seem to be having trouble with the paste part. Do I highlight the column by clicking on the letter above it and pasting or do I manually highlight all the column and paste? Neither seem to be working for me. PS I'm heading off to work so you won't see any response to this until tomorrow but thanks for all the help. "Steve" wrote: Just copy the formula and paste to the rest of column M - it will change each row to C2, then C3, etc "cyrock1" wrote: Steve's answer worked. but now I want this function to work for the entire column. I can manually change the The row number each time but there has to be an easier way. "John Bundy" wrote: See if this does what you are asking, paste in M1 or adapt for your first cell. =IF(C1="Red",1,IF(C2="black",1,"")) -- -John Please rate when your question is answered to help us and others know what is helpful. "cyrock1" wrote: I'm trying to figure out a function for a column. I want column M to look at column C and IF the word in column C is "black" or "red" i want column M to show a value of "1" |
#12
Posted to microsoft.public.excel.misc
|
|||
|
|||
Excel functions
Why not try typing "fill handle" into Excel's help facility?
-- David Biddulph "cyrock1" wrote in message ... I'm not sure what a"fill handle" is but all of the advice was helpful. Where do I rate the help as it saved me a lot of work and will save me even more in the future.. "Gord Dibben" wrote: Or just grab the fill handle of M1 and drag down as far as you wish. .... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
efficiency: database functions vs. math functions vs. array formula | Excel Discussion (Misc queries) | |||
Looking for a site with functions that substitute the ATP functions | Excel Worksheet Functions | |||
User-defined functions created in Excel 2000 fail in Excel 2003 | Excel Discussion (Misc queries) | |||
Nesting functions in the functions dialog box | Excel Worksheet Functions | |||
How do I set up IRR and NPV functions in Excel? | Excel Worksheet Functions |