I need a formula please.

john_cloudstrong

New Member
Joined
Feb 13, 2013
Messages
8
Hi

I havnt used excel in a while i was doing formula in college but that was three years ago so i forget how to do it.

I am using excel 2007 . I need to get from an excel sheet from position ( IT Manager or Head of IT) which falls under T . Then (Head of IT ) which falls under the letter W on the top of the column.

Then I also need every one that works in these companies which are outside of IT as well. So the name of the companies falls under the letter B.


I thank you very much in advance for any help.

If t(IT manager, Head of IT )and w(Head of IT)
get B ???? Thats a really crap guess :)

How do i go about putting this into excel for it to be answered as well.
If i havn't worded this correctly then please let me know

Thanks again. :)
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Hi John, welcome to MrExcel.

Can you post some sample data of your layout?
You can use the link in my signature to post your data.

Ak
 
Upvote 0
Im sorry i dont know how to use that link you were on about i downloaded it but it didnt work. Is there any way i can send you an attachement ??
 
Upvote 0
Hi John,

Once you have download the file and assuming you are using 2007...
Click the Excel orb on the top left of your worksheet.
Click Excel Options.
Click Add-Ins
Click Go
Check the box for Ejhtml4_en, click Ok.

On your ribbon you should see a tab called Add-Ins, click this tab.
Highlight the data you want to post.
Click the first box on the left of the 3 boxes that are displayed on your Add-Ins tab.
Click Forum Standard (the Blue box).
You should now be able to paste your sample data.

Ak
 
Upvote 0
Thanks for your help but this is the way it came out.!! I checked that box forum standard. It did come out in a web browser as html but i cant add that can i.


Excel Workbook
ABCDEFGHIJKLMNOPQRSTUVW
1CO_UIDBUSINESSADDRESS1ADDRESS2ADDRESS3ADDRESS4ADDRESS5COUNTY_CODEPOST_CODETELEPHONENDDFAXFDDEMPLOYEEPCsEMP_UIDTITLEFNAMESNAMEPOSITIONSOURCESIC1POSGROUP
2181593Boramic LimitedFenagh RoadBorrisCo CarlowCARL98273498723123412344010151837MrKentrwertManaging Directorwrt35CEO/Managing Director
3181593Boramic LimitedFenagh RoadBorrisCo CarlowCARL2123123123412344010193419MsCarolwtwrtHuman Resources Managerwertw234Head of IT
4181593Boramic LimitedFenagh RoadBorrisCo CarlowCARL123123123123412344010216566MrSeamuswtwtFinancial Controllerwertw3452Head of Finance
5250729carlowCollege StreetCarlowCARL1231324123412343020174243MrCaoimhinwtwrtPresidentwertw234CEO/Managing Director
6250729carlowCollege StreetCarlowCARL12341231234123413020174244FrJohntrtwertBursarert324Head of Finance
7250729carlowCollege StreetCarlowCARL12341234123412343020174245MrSeamusertwertIT Managerert234523Head of IT
848083Carlow Security ServicesCarlow Gateway Business CentreAthy RoadCarlowCARL12341212341234010138426MrJohnetwertManaging Directorwertw34Head of IT
916599Clogrennane Lime LimitedClogrennaneCo CarlowCARL123412344123412343012164226MrDerryrtwrtFinancial Controllerertw5Head of IT
1016599Clogrennane Lime LimitedClogrennaneCo CarlowCARL1234123123412343012219295MrLarryrtManaging Directorrtwe234CEO/Managing Director
11252759Commissioning Services LimitedDeerpark Business ComplexDublin RoadCarlowCARL23452345NDD RECORD4552345323015178203MrKieranwertwertManaging Directorwertw5CEO/Managing Director
12252759Commissioning Services LimitedDeerpark Business ComplexDublin RoadCarlowCARL23452345NDD RECORD456345634563015250798MrDaveertwretFinancial Controllerrtwe5Head of Finance
1386512Dooley MotorsSleaty RoundaboutCarlowCARL2345234523452345234301022632MrAnthonyrtwrtManaging Directorwertw25CEO/Managing Director
1486512Dooley MotorsSleaty RoundaboutCarlowCARL2345234534634563453010176151MsRowenawtFinancial Controllerwertwe5511Head of IT
15180050engineeringPollerton Industrial EstateHacketstown RoadCarlowCARL23452345NDD RECORD634563456NDD RECORD302594400MrSeamusrtwerManaging Directorrtwert345CEO/Managing Director
16180050engineeringPollerton Industrial EstateHacketstown RoadCarlowCARL234523452NDD RECORD345634563NDD RECORD3025193837MrBrendantwrtFinance Managerwertw25Head of Finance
17180050engineeringPollerton Industrial EstateHacketstown RoadCarlowCARL23452345NDD RECORD345634563NDD RECORD3025193838MsEmerwrtwIT Managerert2Head of IT
18181694KellyTullow Industrial EstateTullowCo CarlowCARL234523452NDD RECORD345634563454010283724MsCathyrtwertHead of Financewert45Head of Finance
19214739Kellys of BorrisDublin RoadBorrisCo CarlowCARL2345234523NDD RECORD4563456345640107754MrMauricertwManaging Directorwe5CEO/Managing Director
20214739Kellys of BorrisDublin RoadBorrisCo CarlowCARL4523452345NDD RECORD45634564010218922MrPaddyrtwertFinancial Controllerrtwe2Head of Finance
21181647Mediplast LimitedStrawhall Industrial EstateCarlowCARL23452345563452520139934MsReginawertwertManaging Directorrt5Head of Finance
Sheet1
 
Upvote 0
Hi Akashwani,

It was all code i didnt think it would work but its great it did. I need to take out of column position (IT Manager and Head of IT) . To get them by formula also i need to get every one from those companies that are not in IT as well.
This is so i can pull out these contacts out of over 2000 rows.

Thanks
John
 
Upvote 0
Hi John,

I think I understand what you require.
You will have to change the Sheet Names and cell references to suit.

Does this work for you?....

Excel Workbook
ABCDEFGHIJKL
1Head of IT6Other13
2TITLEFNAMESNAMEPOSITIONSOURCETITLEFNAMESNAMEPOSITIONSOURCE
3MsCarolwtwrtHuman Resources ManagerwertwMrKentrwertManaging Directorwrt
4MrSeamusertwertIT ManagerertMrSeamuswtwtFinancial Controllerwertw
5MrJohnetwertManaging DirectorwertwMrCaoimhinwtwrtPresidentwertw
6MrDerryrtwrtFinancial ControllerertwFrJohntrtwertBursarert
7MsRowenawtFinancial ControllerwertweMrLarryrtManaging Directorrtwe
8MsEmerwrtwIT ManagerertMrKieranwertwertManaging Directorwertw
9MrDaveertwretFinancial Controllerrtwe
10MrAnthonyrtwrtManaging Directorwertw
11MrSeamusrtwerManaging Directorrtwert
12MrBrendantwrtFinance Managerwertw
13MsCathyrtwertHead of Financewert
14MrMauricertwManaging Directorwe
15MrPaddyrtwertFinancial Controllerrtwe
16
John Result


The formulas in A3 and G3 need entering with ctrl shift enter NOT just enter, they can then be copied across and down.

I hope that helps.

Good luck.

Ak
 
Upvote 0
Hi Akashwani,

Hi again. Im Akashwani Im sorry I worded it wrong i think we have it the wrong way around. Thanks though.

Ok so I will word this as best i can.

The end result that i need is a sheet with all the companies who have


  • an IT Manager or , Head of IT in the column with POSITION on top
  • Also along with those. I need all the other contacts from the companies that meet the above requirements.


Also in the formula 'John Data'!$W$2: where 'john data' is do i put the name of the excel spread sheet there ?

Thanks for your help so far.

Kind Regards

John



Hi John,

I think I understand what you require.
You will have to change the Sheet Names and cell references to suit.

Does this work for you?....

John Result

*ABCDEFGHIJKL
****Other****
**
MsCarolwtwrtHuman Resources Managerwertw*MrKentrwertManaging Directorwrt*
MrSeamusertwertIT Managerert*MrSeamuswtwtFinancial Controllerwertw*
MrJohnetwertManaging Directorwertw*MrCaoimhinwtwrtPresidentwertw*
MrDerryrtwrtFinancial Controllerertw*FrJohntrtwertBursarert*
MsRowenawtFinancial Controllerwertwe*MrLarryrtManaging Directorrtwe*
MsEmerwrtwIT Managerert*MrKieranwertwertManaging Directorwertw*
******MrDaveertwretFinancial Controllerrtwe*
******MrAnthonyrtwrtManaging Directorwertw*
******MrSeamusrtwerManaging Directorrtwert*
******MrBrendantwrtFinance Managerwertw*
******MsCathyrtwertHead of Financewert*
******MrMauricertwManaging Directorwe*
******MrPaddyrtwertFinancial Controllerrtwe*
************

<colgroup><col style="font-weight:bold; width:30px; "><col style="width:69px;"><col style="width:61px;"><col style="width:62px;"><col style="width:177px;"><col style="width:64px;"><col style="width:20px;"><col style="width:64px;"><col style="width:66px;"><col style="width:65px;"><col style="width:130px;"><col style="width:47px;"><col style="width:20px;"></colgroup><tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="bgcolor: #ffff00"]Head of IT[/TD]
[TD="align: right"]6[/TD]

[TD="align: right"]13[/TD]

[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: center"]TITLE[/TD]
[TD="align: center"]FNAME[/TD]
[TD="align: center"]SNAME[/TD]
[TD="align: center"]POSITION[/TD]
[TD="align: center"]SOURCE[/TD]

[TD="align: center"]TITLE[/TD]
[TD="align: center"]FNAME[/TD]
[TD="align: center"]SNAME[/TD]
[TD="align: center"]POSITION[/TD]
[TD="align: center"]SOURCE[/TD]

[TD="bgcolor: #cacaca, align: center"]3[/TD]

[TD="bgcolor: #cacaca, align: center"]4[/TD]

[TD="bgcolor: #cacaca, align: center"]5[/TD]

[TD="bgcolor: #cacaca, align: center"]6[/TD]

[TD="bgcolor: #cacaca, align: center"]7[/TD]

[TD="bgcolor: #cacaca, align: center"]8[/TD]

[TD="bgcolor: #cacaca, align: center"]9[/TD]

[TD="bgcolor: #cacaca, align: center"]10[/TD]

[TD="bgcolor: #cacaca, align: center"]11[/TD]

[TD="bgcolor: #cacaca, align: center"]12[/TD]

[TD="bgcolor: #cacaca, align: center"]13[/TD]

[TD="bgcolor: #cacaca, align: center"]14[/TD]

[TD="bgcolor: #cacaca, align: center"]15[/TD]

[TD="bgcolor: #cacaca, align: center"]16[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
B1=COUNTIF('John Data'!$W$2:$W$20,'John Result'!A1)
H1=COUNTIF('John Data'!$W$2:$W$20,"<>*Head of IT*")
A3{=IF(ROWS(A$3:A3)<=$B$1,INDEX('John Data'!Q$2:Q$20,SMALL(IF('John Data'!$W$2:$W$20=$A$1,ROW('John Data'!Q$2:Q$20)),ROWS(A$3:A3))-ROW('John Data'!$A$2)+1),"")}
G3{=IF(ROWS(G$3:G3)<=$H$1,INDEX('John Data'!Q$2:Q$20,SMALL(IF('John Data'!$W$2:$W$20<>$A$1,ROW('John Data'!Q$2:Q$20)),ROWS(G$3:G3))-ROW('John Data'!$A$2)+1),"")}

<tbody>
</tbody>
Formula Array:
Produce enclosing
{ } by entering
formula with CTRL+SHIFT+ENTER!

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4

The formulas in A3 and G3 need entering with ctrl shift enter NOT just enter, they can then be copied across and down.

I hope that helps.

Good luck.

Ak
 
Upvote 0
Hi John,

Can you post a sample of your expected results please?
This will help me to try and understand what you require.

Wherever there is John Data within the formula, you need to change that to sheet1 or whatever your sheet name is.

Ak
 
Upvote 0

Forum statistics

Threads
1,223,275
Messages
6,171,122
Members
452,381
Latest member
Nova88

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
Back
Top