Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Index / Match Formula Problem

I have a spreadsheet with 2 workbooks called clients and jobs. In the
clients workbook I have 4 columns which include firstname, lastname,
telephone and email.

In the second worksheet (Jobs) I have several columns but 4 are the same as
the ones above the difference being that in the telephone and email columns
I have a formula which populates these cells from the client worksheet using
the first and last name cells. The formula I use (for the telephone column)
is :-

=INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Clients! $A$3:$A$1000&Clients!$B$3:$B$1000,0))

This works fine except I get a #N/A error which I haven't completed the
firstname and lastname cells. I amended the formula to the following to
"hide" the error, which it does, but also leaves the cells blank after I've
added firstname and lastname.

=IF(ISERROR((INDEX(Clients!$C$3:$C$1000,MATCH($K1& $L1,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0))) ),"",(INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Cli ents!$A$3:$A$1000&Clients!$B$3:$B$1000,0))))

What am I doing wrong?

Office 2010
Win XP


  #2   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 259
Default Index / Match Formula Problem

On 18/06/2012 10:10 PM, Andy Roberts wrote:
I have a spreadsheet with 2 workbooks called clients and jobs. In the
clients workbook I have 4 columns which include firstname, lastname,
telephone and email.

In the second worksheet (Jobs) I have several columns but 4 are the same as
the ones above the difference being that in the telephone and email columns
I have a formula which populates these cells from the client worksheet using
the first and last name cells. The formula I use (for the telephone column)
is :-

=INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Clients! $A$3:$A$1000&Clients!$B$3:$B$1000,0))

This works fine except I get a #N/A error which I haven't completed the
firstname and lastname cells. I amended the formula to the following to
"hide" the error, which it does, but also leaves the cells blank after I've
added firstname and lastname.

=IF(ISERROR((INDEX(Clients!$C$3:$C$1000,MATCH($K1& $L1,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0))) ),"",(INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Cli ents!$A$3:$A$1000&Clients!$B$3:$B$1000,0))))

What am I doing wrong?

Office 2010
Win XP


Hey Andy

If your Clients have a Client ID No. why not have that in Column A of
your client & Jobs sheets, this way your only have to use 1 reference
point instead of matching 2. You would only then need to use a LookUp()

For example:

Sheet("Clients")

ClientID = Column A
CLientLastName = Column B
ClientFirstName = Column C
ClientContactNo = Column D
ClientEmail = Column E


Sheet("Jobs")

Column B =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$B$2:$B$1000))
Column C =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$C$2:$C$1000))
Column D =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$D$2:$D$1000))
Column B =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$E$2:$E$1000))

Copy down as desired

HTH
Mick.
  #3   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by Andy Roberts[_3_] View Post
I have a spreadsheet with 2 workbooks called clients and jobs. In the
clients workbook I have 4 columns which include firstname, lastname,
telephone and email.

In the second worksheet (Jobs) I have several columns but 4 are the same as
the ones above the difference being that in the telephone and email columns
I have a formula which populates these cells from the client worksheet using
the first and last name cells. The formula I use (for the telephone column)
is :-

=INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Clients! $A$3:$A$1000&Clients!$B$3:$B$1000,0))

This works fine except I get a #N/A error which I haven't completed the
firstname and lastname cells. I amended the formula to the following to
"hide" the error, which it does, but also leaves the cells blank after I've
added firstname and lastname.

=IF(ISERROR((INDEX(Clients!$C$3:$C$1000,MATCH($K1& $L1,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0))) ),"",(INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Cli ents!$A$3:$A$1000&Clients!$B$3:$B$1000,0))))

What am I doing wrong?

Office 2010
Win XP
Does this do what you need?
Hard to tell without an example workbook.

=IFERROR(INDEX(Clients!$C$3:$C$1000,MATCH($K2&$L2, Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0)),"")
  #4   Report Post  
Posted to microsoft.public.excel,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Index / Match Formula Problem

I did think of this but they dont have an ID. They are simply names added
to a list as and when they make an enquiry to the business.



"Vacuum Sealed" wrote in message
ond.com...
On 18/06/2012 10:10 PM, Andy Roberts wrote:
I have a spreadsheet with 2 workbooks called clients and jobs. In the
clients workbook I have 4 columns which include firstname, lastname,
telephone and email.

In the second worksheet (Jobs) I have several columns but 4 are the same
as
the ones above the difference being that in the telephone and email
columns
I have a formula which populates these cells from the client worksheet
using
the first and last name cells. The formula I use (for the telephone
column)
is :-

=INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Clients! $A$3:$A$1000&Clients!$B$3:$B$1000,0))

This works fine except I get a #N/A error which I haven't completed the
firstname and lastname cells. I amended the formula to the following to
"hide" the error, which it does, but also leaves the cells blank after
I've
added firstname and lastname.

=IF(ISERROR((INDEX(Clients!$C$3:$C$1000,MATCH($K1& $L1,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0))) ),"",(INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Cli ents!$A$3:$A$1000&Clients!$B$3:$B$1000,0))))

What am I doing wrong?

Office 2010
Win XP


Hey Andy

If your Clients have a Client ID No. why not have that in Column A of your
client & Jobs sheets, this way your only have to use 1 reference point
instead of matching 2. You would only then need to use a LookUp()

For example:

Sheet("Clients")

ClientID = Column A
CLientLastName = Column B
ClientFirstName = Column C
ClientContactNo = Column D
ClientEmail = Column E


Sheet("Jobs")

Column B =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$B$2:$B$1000))
Column C =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$C$2:$C$1000))
Column D =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$D$2:$D$1000))
Column B =
=IF($A2="","",LOOKUP($A2,Clients!$A$2:$E$1000,Clie nts!$E$2:$E$1000))

Copy down as desired

HTH
Mick.



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Index / Match Formula Problem

Thanks Spencer

Your formula works in theory but when I input the first and last names the 2
cells which should populate with phone number and email remain blank.

Example can be downloaded from http://www.keepthefaith.org.uk/Test.xlsx

Andy


"Spencer101" wrote in message
...

'Andy Roberts[_3_ Wrote:
;1602842']I have a spreadsheet with 2 workbooks called clients and jobs.
In the
clients workbook I have 4 columns which include firstname, lastname,
telephone and email.

In the second worksheet (Jobs) I have several columns but 4 are the same
as
the ones above the difference being that in the telephone and email
columns
I have a formula which populates these cells from the client worksheet
using
the first and last name cells. The formula I use (for the telephone
column)
is :-

=INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Clients! $A$3:$A$1000&Clients!$B$3:$B$1000,0))

This works fine except I get a #N/A error which I haven't completed the

firstname and lastname cells. I amended the formula to the following to

"hide" the error, which it does, but also leaves the cells blank after
I've
added firstname and lastname.

=IF(ISERROR((INDEX(Clients!$C$3:$C$1000,MATCH($K1& $L1,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0))) ),"",(INDEX(Clients!$C$3:$C$1000,MATCH($K1&$L1,Cli ents!$A$3:$A$1000&Clients!$B$3:$B$1000,0))))

What am I doing wrong?

Office 2010
Win XP


Does this do what you need?
Hard to tell without an example workbook.

*=IFERROR(INDEX(Clients!$C$3:$C$1000,MATCH($K2&$L2 ,Clients!$A$3:$A$1000&Clients!$B$3:$B$1000,0)),"")
*




--
Spencer101



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
Index Match Problem Mike B Excel Worksheet Functions 4 April 6th 09 12:19 AM
Index Match Problem MrRJ Excel Worksheet Functions 13 February 18th 09 03:48 PM
Index/Match problem Lisa Excel Worksheet Functions 7 April 26th 07 06:28 PM
Index Match Problem Scooterdog Excel Worksheet Functions 1 December 21st 04 02:49 AM
Array Formula Index Match formulas in VBA problem hawkit Excel Programming 1 April 30th 04 05:53 PM


All times are GMT +1. The time now is 05:39 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"