Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 275
Default If B2=x, then for all values of A2, place y in C3

Is this a macro that I have to run, or can I perform this as an
equation/function? I'm thinking I can do it with an array, but can't quite
put it together. I'll give an example:

A B C
1 1 Alex Oldest
2 2 Barbara Middle
3 3 Chloe Youngest
4 1 Oldest
5 3 Youngest
6 2 Middle

In word form I want to say: If $B$1="Alex", then If A:A=1,C:C="Oldest"

Even though B4 is blank, the formula knows to put "Oldest" in C4 because A4=1.

Would I need to turn C:C into a helper column and put the answers in D:D?
Thanks for any help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default If B2=x, then for all values of A2, place y in C3

If you have only those 3 variables:

1 = oldest
2 = middle
3 = youngest

Try this...

=CHOOSE(A1,"Oldest","Middle","Youngest")

--
Biff
Microsoft Excel MVP


"Anthony" wrote in message
...
Is this a macro that I have to run, or can I perform this as an
equation/function? I'm thinking I can do it with an array, but can't
quite
put it together. I'll give an example:

A B C
1 1 Alex Oldest
2 2 Barbara Middle
3 3 Chloe Youngest
4 1 Oldest
5 3 Youngest
6 2 Middle

In word form I want to say: If $B$1="Alex", then If A:A=1,C:C="Oldest"

Even though B4 is blank, the formula knows to put "Oldest" in C4 because
A4=1.

Would I need to turn C:C into a helper column and put the answers in D:D?
Thanks for any help!



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
Sorting table of numbers with different place values Lynn Excel Worksheet Functions 2 July 31st 09 08:23 PM
Compare values and place corresponding value in another sheet Whitney Excel Discussion (Misc queries) 3 April 14th 09 04:45 PM
Zero displayed in place of negative values TC Excel Discussion (Misc queries) 3 May 9th 07 08:07 PM
Auto sum returns a 0 value in place of sum of values in column. Jo Anna Excel Discussion (Misc queries) 4 August 28th 06 06:56 PM
Look up values and place in spreadsheet jh3016 Excel Discussion (Misc queries) 10 July 26th 05 12:43 AM


All times are GMT +1. The time now is 07:45 PM.

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"