Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Phyllis
 
Posts: n/a
Default Vlookup, index, match?

Here's what I need to do: I need a formula that will look
at the SSN on sheet one match it to the SSN on sheet two,
when it finds a match then find the value in column R and
based on certain criteria, I need to add an if statement.
I'm not sure how to or if I can do a vlookup and an if
statement in the same formula.

example:

=vlookup(A1,Sheet2$A1:R1000,18,false), then based on the
data found, I need =if(Sheet2$R?="T","TMR","REG")

I know this is not the proper way to do this, and that's
where I need help. What is the easiest way to accomplish
this?
  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=IF(ISERROR(vlookup(A1,Sheet2$A1:R1000,18,false)), "",IF
(vlookup(A1,Sheet2$A1:R1000,18,false)="T","TMR","R EG"))

Biff

-----Original Message-----
Here's what I need to do: I need a formula that will

look
at the SSN on sheet one match it to the SSN on sheet two,
when it finds a match then find the value in column R and
based on certain criteria, I need to add an if

statement.
I'm not sure how to or if I can do a vlookup and an if
statement in the same formula.

example:

=vlookup(A1,Sheet2$A1:R1000,18,false), then based on the
data found, I need =if(Sheet2$R?="T","TMR","REG")

I know this is not the proper way to do this, and that's
where I need help. What is the easiest way to accomplish
this?
.

  #3   Report Post  
Biff
 
Posts: n/a
Default

Ooops!

slight correction, don't forget the "!" in the Sheet2
reference:

=IF(ISERROR(vlookup(A1,Sheet2!$A1:R1000,18,false)) ,"",IF
(vlookup(A1,Sheet2!$A1:R1000,18,false)="T","TMR"," REG"))

Biff

-----Original Message-----
Hi!

Try this:

=IF(ISERROR(vlookup(A1,Sheet2$A1:R1000,18,false)) ,"",IF
(vlookup(A1,Sheet2$A1:R1000,18,false)="T","TMR"," REG"))

Biff

-----Original Message-----
Here's what I need to do: I need a formula that will

look
at the SSN on sheet one match it to the SSN on sheet

two,
when it finds a match then find the value in column R

and
based on certain criteria, I need to add an if

statement.
I'm not sure how to or if I can do a vlookup and an if
statement in the same formula.

example:

=vlookup(A1,Sheet2$A1:R1000,18,false), then based on the
data found, I need =if(Sheet2$R?="T","TMR","REG")

I know this is not the proper way to do this, and that's
where I need help. What is the easiest way to

accomplish
this?
.

.

  #4   Report Post  
Phyllis
 
Posts: n/a
Default

Thanks Biff, it wasn't perfect, but it was enough to point
me in the right direction and I was able to figure it out
and make it work. You guys are awesome. thanks again.
-----Original Message-----
Hi!

Try this:

=IF(ISERROR(vlookup(A1,Sheet2$A1:R1000,18,false)) ,"",IF
(vlookup(A1,Sheet2$A1:R1000,18,false)="T","TMR"," REG"))

Biff

-----Original Message-----
Here's what I need to do: I need a formula that will

look
at the SSN on sheet one match it to the SSN on sheet

two,
when it finds a match then find the value in column R

and
based on certain criteria, I need to add an if

statement.
I'm not sure how to or if I can do a vlookup and an if
statement in the same formula.

example:

=vlookup(A1,Sheet2$A1:R1000,18,false), then based on the
data found, I need =if(Sheet2$R?="T","TMR","REG")

I know this is not the proper way to do this, and that's
where I need help. What is the easiest way to

accomplish
this?
.

.

  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Phyllis,

air-coded

=IF(ISNUMBER(MATCH(A1,Sheet2!$A1:A1000,0)),IF(INDI RECT("Sheet2!$R"&MATCH(A1,
Sheet2!$A1:A1000,0))="T","TMR","REG"))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Phyllis" wrote in message
...
Here's what I need to do: I need a formula that will look
at the SSN on sheet one match it to the SSN on sheet two,
when it finds a match then find the value in column R and
based on certain criteria, I need to add an if statement.
I'm not sure how to or if I can do a vlookup and an if
statement in the same formula.

example:

=vlookup(A1,Sheet2$A1:R1000,18,false), then based on the
data found, I need =if(Sheet2$R?="T","TMR","REG")

I know this is not the proper way to do this, and that's
where I need help. What is the easiest way to accomplish
this?





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
Vlookup returns incorrect match Smichaud Excel Discussion (Misc queries) 2 November 30th 04 10:51 AM
Match & Index Phyllis B. Excel Worksheet Functions 2 November 27th 04 03:26 PM
Index match problems Don O Excel Worksheet Functions 2 November 25th 04 05:04 AM
Find a match that;s not exact Phyllis Excel Worksheet Functions 0 November 8th 04 08:12 PM
Vlookup, Index & Match Phyllis Excel Worksheet Functions 1 November 8th 04 06:11 PM


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