I think I need to use Index, Match, and IsNumber but am confused

G

grateful

Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in the 2nd
workbook.

I need a formula in Workbook 1 Column D to look for the sameproject in
Workbook 2, column B, even though column B in workbook 2 contains more text
than Column C in workbook 1...and then put the corresponding value into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when the two
cells aren't IDENTICAL....I can use ISNUMBER...but that only gives me a True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
T

T. Valko

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the other
file.
 
D

Dylan @ UAFC

no problem the simple way would be
=VLOOKUP formula

think of the second sheet as raw data that will only
to popluate the next cell with the corresponding data.

in sheet1
Column C Column D
Contains value Retrieves the value for the second sheet


the forlmual in column would be
=VLOOKUP(C1,Sheet2!$b$1:$C$3,2,FALSE)

I know it looks scary but its not.
VLOOKUP is the formula.
C1 is were the data is coming form.
Sheet2!$b$1:$C$3 is called a table array
The next (2) is the column of data form the
table array you would like to see
False mean it will pull the exact text sting
ascending order does not matter
 
G

grateful

Hi, That worked beautifully! Thank you so much. This is what worked for me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the formula is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all the
projects that are not found in workbook 1?

Thank you so much!
 
G

grateful

Hi Dylan, Thank you for your response....I think you're right that VLookup
should work somehow...I've come across it when I was trying to figure it
out...even though I couldn't get it to work... I don't really understand it.

I tried your formula and it comes back #N/A....and I also tried it this way:
=VLOOKUP(C7,'[Workbook2.xls]Current'!$B$1:$C$146,2,FALSE)
for example in Row 7, but it still comes back #N/A...so maybe I don't
understand how the array thing works....

Thanks a lot. If you have time....I wouldn't mind understanding VLookUp,
but if you don't I understand.

Thanks!
 
T

T. Valko

1. That's how SEARCH handles empty cells. You could use an IF test to see if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project names in
book2 you can use a formula like this to "flag" the projects:
SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Hi, That worked beautifully! Thank you so much. This is what worked for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the formula
is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all
the
projects that are not found in workbook 1?

Thank you so much!



T. Valko said:
One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the
other
file.
 
G

grateful

Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I am
missing a parentheses, but if I add it to the end...it still doesn't work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that, by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not Found")


Can you still help me? :blush:)

Thank you!





T. Valko said:
1. That's how SEARCH handles empty cells. You could use an IF test to see if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project names in
book2 you can use a formula like this to "flag" the projects:
SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Hi, That worked beautifully! Thank you so much. This is what worked for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the formula
is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all
the
projects that are not found in workbook 1?

Thank you so much!



T. Valko said:
One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in the 2nd
workbook.

I need a formula in Workbook 1 Column D to look for the sameproject in
Workbook 2, column B, even though column B in workbook 2 contains more
text
than Column C in workbook 1...and then put the corresponding value into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when the two
cells aren't IDENTICAL....I can use ISNUMBER...but that only gives me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
T

T. Valko

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses
Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I am
missing a parentheses, but if I add it to the end...it still doesn't work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that, by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





T. Valko said:
1. That's how SEARCH handles empty cells. You could use an IF test to see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project names
in
book2 you can use a formula like this to "flag" the projects:
SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Hi, That worked beautifully! Thank you so much. This is what worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the sameproject
in
Workbook 2, column B, even though column B in workbook 2 contains
more
text
than Column C in workbook 1...and then put the corresponding value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
G

grateful

hmmmm....

This is what I have:

=IF(SUMPRODUCT(--([Worksheet1.xls]Current!C:C=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--([Worksheet2.xls]Current!C:C=MID(B3,FIND(":",B3)+1,50)))+SUMPRODUCT(--([Worksheet3.xls]Current!C:C=MID(B3,FIND(":",B3)+1,50)))+SUMPRODUCT(--('[Worksheet4.xls]Current'!C:C=MID(B3,FIND(":",B3)+1,50))),"","Not Found")

and it is returning: #NUM!

Can you see what I am doing wrong?





T. Valko said:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses
Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I am
missing a parentheses, but if I add it to the end...it still doesn't work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that, by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





T. Valko said:
1. That's how SEARCH handles empty cells. You could use an IF test to see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project names
in
book2 you can use a formula like this to "flag" the projects:

SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


Hi, That worked beautifully! Thank you so much. This is what worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the sameproject
in
Workbook 2, column B, even though column B in workbook 2 contains
more
text
than Column C in workbook 1...and then put the corresponding value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
P

Pete_UK

You can't use full-column references with SUMPRODUCT (unless you have
XL2007), so you will have to change all those C:C to C$3:C$146 (or
whatever).

Hope this helps.

Pete
 
G

grateful

Hi Again....

So I think it's working now! Thank you very much.

I was wondering if you could tell me what the +1,50 is referring to? Just
so I can understand.

Thank you.




T. Valko said:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses
Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I am
missing a parentheses, but if I add it to the end...it still doesn't work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that, by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





T. Valko said:
1. That's how SEARCH handles empty cells. You could use an IF test to see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project names
in
book2 you can use a formula like this to "flag" the projects:

SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


Hi, That worked beautifully! Thank you so much. This is what worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing that?

2) Also is there a formula I could use in Work Book 2, to highlight all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the sameproject
in
Workbook 2, column B, even though column B in workbook 2 contains
more
text
than Column C in workbook 1...and then put the corresponding value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
T

T. Valko

The "+1,50" is part of the MID function.

MID(B3,FIND(":",B3)+1,50)

MID retruns a substring of a larger string. Consider this example:

B3 = abc:xyz

=MID(B3,FIND(":",B3)+1,50)

Returns xyz

The arguments for MID are:

B3 = the larger string to look at
FIND(":",B3)+1 = the starting position of the substring that we want to
extract
50 = the number of characters to extract

=MID(abc:xyz,FIND(":",B3)+1,50)

The FIND function returns the starting position of the character or
characters that we want to look for. We want to extract everything to the
right of the colon so we use FIND to find the position of the colon.

The colon is the 4th character so FIND(":",abc:xyz) returns 4. We want to
extract everything to the right of the colon so we add 1 to the result of
the FIND function: FIND(":",B3)+1 = 5. This is now our starting position for
the MID function:

=MID(abc:xyz,5,50)

50 = the number of characters to extract. 50 is an arbitrary number that is
large enough that "guarantees" we extract everything to the right of the
colon when what follows the colon is of variable length.

abc:xyz
abc:xyz123
abc:xyz0

So, in plain English:

With the string abc:xyz, starting at character number 5, extract the next 50
characters or however many charaters there are to the end of the string.

--
Biff
Microsoft Excel MVP


grateful said:
Hi Again....

So I think it's working now! Thank you very much.

I was wondering if you could tell me what the +1,50 is referring to? Just
so I can understand.

Thank you.




T. Valko said:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses
Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


grateful said:
Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I
am
missing a parentheses, but if I add it to the end...it still doesn't
work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that,
by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





:

1. That's how SEARCH handles empty cells. You could use an IF test to
see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project
names
in
book2 you can use a formula like this to "flag" the projects:

SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


Hi, That worked beautifully! Thank you so much. This is what
worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing
that?

2) Also is there a formula I could use in Work Book 2, to highlight
all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in
the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in
the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the
sameproject
in
Workbook 2, column B, even though column B in workbook 2 contains
more
text
than Column C in workbook 1...and then put the corresponding
value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when
the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only
gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
G

grateful

That was so clear.

Thank you VERY much.



T. Valko said:
The "+1,50" is part of the MID function.

MID(B3,FIND(":",B3)+1,50)

MID retruns a substring of a larger string. Consider this example:

B3 = abc:xyz

=MID(B3,FIND(":",B3)+1,50)

Returns xyz

The arguments for MID are:

B3 = the larger string to look at
FIND(":",B3)+1 = the starting position of the substring that we want to
extract
50 = the number of characters to extract

=MID(abc:xyz,FIND(":",B3)+1,50)

The FIND function returns the starting position of the character or
characters that we want to look for. We want to extract everything to the
right of the colon so we use FIND to find the position of the colon.

The colon is the 4th character so FIND(":",abc:xyz) returns 4. We want to
extract everything to the right of the colon so we add 1 to the result of
the FIND function: FIND(":",B3)+1 = 5. This is now our starting position for
the MID function:

=MID(abc:xyz,5,50)

50 = the number of characters to extract. 50 is an arbitrary number that is
large enough that "guarantees" we extract everything to the right of the
colon when what follows the colon is of variable length.

abc:xyz
abc:xyz123
abc:xyz0

So, in plain English:

With the string abc:xyz, starting at character number 5, extract the next 50
characters or however many charaters there are to the end of the string.

--
Biff
Microsoft Excel MVP


grateful said:
Hi Again....

So I think it's working now! Thank you very much.

I was wondering if you could tell me what the +1,50 is referring to? Just
so I can understand.

Thank you.




T. Valko said:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses

Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me I
am
missing a parentheses, but if I add it to the end...it still doesn't
work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do that,
by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





:

1. That's how SEARCH handles empty cells. You could use an IF test to
see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project
names
in
book2 you can use a formula like this to "flag" the projects:

SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


Hi, That worked beautifully! Thank you so much. This is what
worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing
that?

2) Also is there a formula I could use in Work Book 2, to highlight
all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in
the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in
the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the
sameproject
in
Workbook 2, column B, even though column B in workbook 2 contains
more
text
than Column C in workbook 1...and then put the corresponding
value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses Match...when
the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only
gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 
T

T. Valko

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


grateful said:
That was so clear.

Thank you VERY much.



T. Valko said:
The "+1,50" is part of the MID function.

MID(B3,FIND(":",B3)+1,50)

MID retruns a substring of a larger string. Consider this example:

B3 = abc:xyz

=MID(B3,FIND(":",B3)+1,50)

Returns xyz

The arguments for MID are:

B3 = the larger string to look at
FIND(":",B3)+1 = the starting position of the substring that we want to
extract
50 = the number of characters to extract

=MID(abc:xyz,FIND(":",B3)+1,50)

The FIND function returns the starting position of the character or
characters that we want to look for. We want to extract everything to the
right of the colon so we use FIND to find the position of the colon.

The colon is the 4th character so FIND(":",abc:xyz) returns 4. We want to
extract everything to the right of the colon so we add 1 to the result of
the FIND function: FIND(":",B3)+1 = 5. This is now our starting position
for
the MID function:

=MID(abc:xyz,5,50)

50 = the number of characters to extract. 50 is an arbitrary number that
is
large enough that "guarantees" we extract everything to the right of the
colon when what follows the colon is of variable length.

abc:xyz
abc:xyz123
abc:xyz0

So, in plain English:

With the string abc:xyz, starting at character number 5, extract the next
50
characters or however many charaters there are to the end of the string.

--
Biff
Microsoft Excel MVP


grateful said:
Hi Again....

So I think it's working now! Thank you very much.

I was wondering if you could tell me what the +1,50 is referring to?
Just
so I can understand.

Thank you.




:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")
it tells me I am missing a parentheses

Yep...

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

If I want it to scan 4 workbooks simulataneously,
can I do that, by putting commas between the workbooks?

No, you can't do it like that.

You'd have to test each file as a separate condition:

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook2.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook3.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)))+
SUMPRODUCT(--('[Workbook4.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50))),"","Not
Found")

--
Biff
Microsoft Excel MVP


Thank you so much for your help.

I'm sorry it has taken me so long to get back. I was off on a two
week
course, and then was away during the holidays.

The solution for problem 1, worked perfectectly! Thank you!

For problem 2...I am going to work with it. Right now, it tells me
I
am
missing a parentheses, but if I add it to the end...it still doesn't
work.

If you know what I am missing please let me know.

This is what I have:
=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

Also...If I want it to scan 4 workbooks simulataneously, can I do
that,
by
putting commas between the workbooks?

For
example?:=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range,[Workbook5.xls]SheetName'!Range,[Workbook6.xls]SheetName'!Range,[Workbook7.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")


Can you still help me? :blush:)

Thank you!





:

1. That's how SEARCH handles empty cells. You could use an IF test
to
see
if
the cell is empty:

=IF(C4="","",SUMPRODUCT(--(ISNUMBER(SEARCH(C4............

If the cell is empty the formula returns a blank.

2. As long as the colon is a standard character in all the project
names
in
book2 you can use a formula like this to "flag" the projects:

SubProject 1
MainProject:SubProject 1

=IF(SUMPRODUCT(--('[Workbook1.xls]SheetName'!Range=MID(B3,FIND(":",B3)+1,50)),"","Not
Found")

--
Biff
Microsoft Excel MVP


Hi, That worked beautifully! Thank you so much. This is what
worked
for
me.
=SUMPRODUCT(--(ISNUMBER(SEARCH(C4,'[Workbook2.xls]Current'!$B$3:$B$146))),'[Workbook2.xls]Current'!$C$3:$C$146)

I have two questions now....I don't know if you can help me.

1) Not all the rows in the first work book have projects...so the
formula
is
actually returning the number "8752". Do you know why it's doing
that?

2) Also is there a formula I could use in Work Book 2, to
highlight
all
the
projects that are not found in workbook 1?

Thank you so much!



:

One way:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,other_file_other_sheet!B1:B400))),other_file_other_sheet!C1:C400)

Have the other file open.
Start typing the formula:

=SUMPRODUCT(--(ISNUMBER(SEARCH(C1,

When you get that far use your mouse to point to the range(s) in
the
other
file.

--
Biff
Microsoft Excel MVP


Hi there.

I have two workbooks.

In the first workbook column C has about 200 subproject names.
(Ex. C
SubProject 1
SubProject 2
SubProject 3)



In the second workbook column B there are about 400 projects
(Ex. B C
MainProject:SubProject 1 10
Mainproject:SubProject 3 5
Mainproject:SubProject 2 20)


Those 200 projects are somewhere in the 400 projects listed in
the
2nd
workbook.

I need a formula in Workbook 1 Column D to look for the
sameproject
in
Workbook 2, column B, even though column B in workbook 2
contains
more
text
than Column C in workbook 1...and then put the corresponding
value
into
Column D Worksheet 1 in the row with the matching project.

My difficulty is making an Index Formula that uses
Match...when
the
two
cells aren't IDENTICAL....I can use ISNUMBER...but that only
gives
me a
True
or False...But I'm pretty sure I then need to INDEX...

Can anyone help?? :blush:)

Thank you so much!

You are all so smart.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top