#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Nested IF?

I searched in all the areas and I couldn't find this.

I have two spreadsheets. Spreadsheet A has addresses broken out in columns
F through I. The phone number is in column E. Spreadsheet B has addresses
broken out in columns C through F. The phone number is in column B.

Is there a way to do an IF function on spreadsheet B that says find the row
on spreadsheet A that has this phone number and check to make sure the
address cells match?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Nested IF?

On sheet2, use a helper column, say M

M2: =MATCH(B2,Sheet1!$E:$E,0)
N2:
=IF(ISNUMBER(M2),IF(AND(INDEX(Sheet1!$F:$F,M2)=C2, INDEX(Sheet1!$G:$G,M2)=D2,INDEX(Sheet1!$H:$H,M2)=E 2,INDEX(Sheet1!$I:$I,M2)=F2),"Match","No
match"))

copy down

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toria" wrote in message
...
I searched in all the areas and I couldn't find this.

I have two spreadsheets. Spreadsheet A has addresses broken out in
columns
F through I. The phone number is in column E. Spreadsheet B has
addresses
broken out in columns C through F. The phone number is in column B.

Is there a way to do an IF function on spreadsheet B that says find the
row
on spreadsheet A that has this phone number and check to make sure the
address cells match?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 38
Default Nested IF?

Thanks, Bob! This worked wonderfully!!

"Bob Phillips" wrote:

On sheet2, use a helper column, say M

M2: =MATCH(B2,Sheet1!$E:$E,0)
N2:
=IF(ISNUMBER(M2),IF(AND(INDEX(Sheet1!$F:$F,M2)=C2, INDEX(Sheet1!$G:$G,M2)=D2,INDEX(Sheet1!$H:$H,M2)=E 2,INDEX(Sheet1!$I:$I,M2)=F2),"Match","No
match"))

copy down

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Toria" wrote in message
...
I searched in all the areas and I couldn't find this.

I have two spreadsheets. Spreadsheet A has addresses broken out in
columns
F through I. The phone number is in column E. Spreadsheet B has
addresses
broken out in columns C through F. The phone number is in column B.

Is there a way to do an IF function on spreadsheet B that says find the
row
on spreadsheet A that has this phone number and check to make sure the
address cells match?




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default Nested IF?

"Bob Phillips" wrote...
On sheet2, use a helper column, say M

M2: =MATCH(B2,Sheet1!$E:$E,0)
N2: =IF(ISNUMBER(M2),IF(AND(INDEX(Sheet1!$F:$F,M2)=C2, INDEX(Sheet1!$G:$G,M2)=D2,
INDEX(Sheet1!$H:$H,M2)=E2,INDEX(Sheet1!$I:$I,M2)= F2),"Match","No match"))

....

FTHOI, a single formula alternative.

N2:
=IF(COUNT(M2),IF(COUNT(INDEX(1/(INDEX(Sheet1!$F:$I,M2,0)=C2:F2),
1,0))=4,"full","partial")
&" address","no phone #")&" match"
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
Nested if ab3d4u[_25_] Excel Worksheet Functions 5 December 19th 07 06:46 PM
Help Nested If and And madeleine Excel Worksheet Functions 2 June 20th 07 03:10 PM
nested if based on nested if in seperate sheet. how? scouserabbit Excel Worksheet Functions 5 March 2nd 07 04:03 PM
Nested IF Ed Ferrero Excel Discussion (Misc queries) 4 November 27th 05 05:31 PM
Nested if bjd via OfficeKB.com Excel Worksheet Functions 4 June 21st 05 03:25 PM


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

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"