Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default HELP! Lookup, countif or if statement

Hello

I have a "raw data" sheet of 1500 rows and 30 columns.... in columns J, K,
L, M, T, W are names of people. In the "Lookup" sheet I have a list of
leavers (I have defined the list). In the last column of the "Raw Data" sheet
I need to bring back the Name/s of the leaver/s if mentioned in columns J, K,
L, M, T, W.
I know I need to use a nested formula just which ones?

You help is greatly appreciated!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default HELP! Lookup, countif or if statement

Suppose your list of leavers names is in column A of Sheet2 in the
same workbook. You can have a formula like this to check if the name
in J2 is in your list of names:

=IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2)

You can apply the same type of formula to look in K2, L2 etc and join
the results together, but you will probably want them separated (eg
with a space), like this:

=TRIM(IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2&" ")&IF(ISNA(MATCH
(K2,Sheet2!$A:$A,0)),"",K2&" ")&IF(ISNA(MATCH(L2,Sheet2!$A:$A,
0)),"",L2&" ")&IF(ISNA(MATCH(M2,Sheet2!$A:$A,0)),"",M2&" ")&IF(ISNA
(MATCH(T2,Sheet2!$A:$A,0)),"",T2&" ")&IF(ISNA(MATCH(W2,Sheet2!$A:$A,
0)),"",W2))

The TRIM function gets rid of any multiple spaces in the resultant
string.

Hope this helps.

Pete

On Nov 25, 11:27*am, Tracey wrote:
Hello

I have a "raw data" sheet of 1500 rows and 30 columns.... in columns J, K,
L, M, T, W are names of people. In the "Lookup" sheet I have a list of
leavers (I have defined the list). In the last column of the "Raw Data" sheet
I need to bring back the Name/s of the leaver/s if mentioned in columns J, K,
L, M, T, W.
I know I need to use a nested formula just which ones?

You help is greatly appreciated!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 78
Default HELP! Lookup, countif or if statement

Pete you are a God send!!!!! Thank you, it works a treat!



"Pete_UK" wrote:

Suppose your list of leavers names is in column A of Sheet2 in the
same workbook. You can have a formula like this to check if the name
in J2 is in your list of names:

=IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2)

You can apply the same type of formula to look in K2, L2 etc and join
the results together, but you will probably want them separated (eg
with a space), like this:

=TRIM(IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2&" ")&IF(ISNA(MATCH
(K2,Sheet2!$A:$A,0)),"",K2&" ")&IF(ISNA(MATCH(L2,Sheet2!$A:$A,
0)),"",L2&" ")&IF(ISNA(MATCH(M2,Sheet2!$A:$A,0)),"",M2&" ")&IF(ISNA
(MATCH(T2,Sheet2!$A:$A,0)),"",T2&" ")&IF(ISNA(MATCH(W2,Sheet2!$A:$A,
0)),"",W2))

The TRIM function gets rid of any multiple spaces in the resultant
string.

Hope this helps.

Pete

On Nov 25, 11:27 am, Tracey wrote:
Hello

I have a "raw data" sheet of 1500 rows and 30 columns.... in columns J, K,
L, M, T, W are names of people. In the "Lookup" sheet I have a list of
leavers (I have defined the list). In the last column of the "Raw Data" sheet
I need to bring back the Name/s of the leaver/s if mentioned in columns J, K,
L, M, T, W.
I know I need to use a nested formula just which ones?

You help is greatly appreciated!!


.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default HELP! Lookup, countif or if statement

You're welcome, Tracey - thanks for feeding back.

Pete

On Nov 25, 1:01*pm, Tracey wrote:
Pete you are a God send!!!!! Thank you, it works a treat!



"Pete_UK" wrote:
Suppose your list of leavers names is in column A of Sheet2 in the
same workbook. You can have a formula like this to check if the name
in J2 is in your list of names:


=IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2)


You can apply the same type of formula to look in K2, L2 etc and join
the results together, but you will probably want them separated (eg
with a space), like this:


=TRIM(IF(ISNA(MATCH(J2,Sheet2!$A:$A,0)),"",J2&" ")&IF(ISNA(MATCH
(K2,Sheet2!$A:$A,0)),"",K2&" ")&IF(ISNA(MATCH(L2,Sheet2!$A:$A,
0)),"",L2&" ")&IF(ISNA(MATCH(M2,Sheet2!$A:$A,0)),"",M2&" ")&IF(ISNA
(MATCH(T2,Sheet2!$A:$A,0)),"",T2&" ")&IF(ISNA(MATCH(W2,Sheet2!$A:$A,
0)),"",W2))


The TRIM function gets rid of any multiple spaces in the resultant
string.


Hope this helps.


Pete


On Nov 25, 11:27 am, Tracey wrote:
Hello


I have a "raw data" sheet of 1500 rows and 30 columns.... in columns J, K,
L, M, T, W are names of people. In the "Lookup" sheet I have a list of
leavers (I have defined the list). In the last column of the "Raw Data" sheet
I need to bring back the Name/s of the leaver/s if mentioned in columns J, K,
L, M, T, W.
I know I need to use a nested formula just which ones?


You help is greatly appreciated!!


.- Hide quoted text -


- Show quoted text -


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
Countif? or IF statement?? paankadu Excel Worksheet Functions 2 February 9th 09 05:50 PM
Countif within and if statement Amber Excel Worksheet Functions 2 July 30th 07 06:05 PM
COUNTIF(AND Statement lccubb Excel Discussion (Misc queries) 2 December 31st 06 05:06 PM
Countif Statement souchie40 Excel Discussion (Misc queries) 3 May 4th 06 05:42 PM
countif statement Russell Hampton Excel Worksheet Functions 6 December 18th 04 07:39 PM


All times are GMT +1. The time now is 06:50 AM.

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

About Us

"It's about Microsoft Excel"