Formula/function?

number cruncher

New Member
Joined
Aug 23, 2007
Messages
2
I'm sure this is a simple thing but m excel skills are somewhat limited. Hoping someone can help.

I have 2 columns of data in sheet 1 under columns 'a' (titled 'Females') and 'b' (titled 'Male').
I have the same list of data but all in column 'a' of sheet 2 (listed in a different order than sheet 1).
In sheet 2, column b, if I want to insert which column (Males or females in sheet 1) that cell matches then what formula should I be using? NB, the cell value can appear in both columns a & b of sheet 1.

Thanks!!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Lewiy

Well-known Member
Joined
Jan 5, 2007
Messages
4,284
I have put it all on one sheet for display purposes, but does this help?:
Book4
ABCDEFG
1FemaleMaleNamesColumn
2SarahJohnBillMale
3AnneBillAnneFemale
4SueJoeSueFemale
5JohnMale
6JoeMale
7SarahFemale
8
9
10
11
12
13
14
15
Sheet1
 

number cruncher

New Member
Joined
Aug 23, 2007
Messages
2
Thank you sooooooooooooo much!! - this works like a charm, the only problem is that if the item appears in both columns, it picks up on the first column only. How do I add a "both" result to the formula?
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,675
Messages
5,838,713
Members
430,566
Latest member
ChanchalSingh

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
Top