Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Vlookup With Multiple Instances in Data Table

Hello all,

First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.

I'm developing a Pivot Table to calculate PO balances. The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. Any assistance with this project is gratefully
appreciated. Thank you in advance, Ron
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup With Multiple Instances in Data Table

You can try something like this:

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0),"")

Copy down as needed.

--
Biff
Microsoft Excel MVP


wrote in message
...
Hello all,

First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.

I'm developing a Pivot Table to calculate PO balances. The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. Any assistance with this project is gratefully
appreciated. Thank you in advance, Ron



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup With Multiple Instances in Data Table

Ooops! Missing a closing ")" :

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0)),"")


--
Biff
Microsoft Excel MVP


"T. Valko" wrote in message
...
You can try something like this:

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0),"")

Copy down as needed.

--
Biff
Microsoft Excel MVP


wrote in message
...
Hello all,

First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.

I'm developing a Pivot Table to calculate PO balances. The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. Any assistance with this project is gratefully
appreciated. Thank you in advance, Ron





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Vlookup With Multiple Instances in Data Table

On Oct 6, 2:48*pm, "T. Valko" wrote:
Ooops! Missing a closing ")" :

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0)),"")

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...



You can try something like this:


=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0),"")


Copy down as needed.


--
Biff
Microsoft Excel MVP


wrote in message
....
Hello all,


First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.


I'm developing a Pivot Table to calculate PO balances. *The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. *Any assistance with this project is gratefully
appreciated. *Thank you in advance, Ron- Hide quoted text -


- Show quoted text -


Hi Biff, thank you for the quick response. I'm not getting anything
back, I'm getting blank. Should this formula be an Array? I'm not
sure I explained the situation with the data table correctly. The
data table has multiple PO numbers with multiple invoices. Some PO's
will have one invoice while others will have 2 or more and as many as
15.
Thank you for your assistance.
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Vlookup With Multiple Instances in Data Table

You'll need to describe (in great detail) or post a sample showing how your
data is setup.

--
Biff
Microsoft Excel MVP


wrote in message
...
On Oct 6, 2:48 pm, "T. Valko" wrote:
Ooops! Missing a closing ")" :

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0)),"")

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...



You can try something like this:


=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0),"")


Copy down as needed.


--
Biff
Microsoft Excel MVP


wrote in message
...
Hello all,


First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.


I'm developing a Pivot Table to calculate PO balances. The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. Any assistance with this project is gratefully
appreciated. Thank you in advance, Ron- Hide quoted text -


- Show quoted text -


Hi Biff, thank you for the quick response. I'm not getting anything
back, I'm getting blank. Should this formula be an Array? I'm not
sure I explained the situation with the data table correctly. The
data table has multiple PO numbers with multiple invoices. Some PO's
will have one invoice while others will have 2 or more and as many as
15.
Thank you for your assistance.




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 968
Default Vlookup With Multiple Instances in Data Table

One simple and fast solution would be to sort the data PO ascending, Invoice
amount descending, and then add a helper column:
assumes that PO number is in A and invoice amount in B and that data starts
in row 2
=If(a2<a1,b2,0)
and fill down

regards
Charles
__________________________________________________
The Excel Calculation Site
http://www.decisionmodels.com

wrote in message
...
On Oct 6, 2:48 pm, "T. Valko" wrote:
Ooops! Missing a closing ")" :

=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0)),"")

--
Biff
Microsoft Excel MVP

"T. Valko" wrote in message

...



You can try something like this:


=IF(COUNTIF(A$1:A1,A1)=1,INDEX(Balance,MATCH(A1,PO ,0),"")


Copy down as needed.


--
Biff
Microsoft Excel MVP


wrote in message
...
Hello all,


First I have to say that I've not posted a question in over 5 years
due to the fantastic results I've had searching for solutions in this
group.


I'm developing a Pivot Table to calculate PO balances. The problem
I've having is that a PO number resides in every row in the database.
I'm looking for a solution that will pull the PO amount for the first
instance into a new column and then pull zeros for the remaining
instances. Any assistance with this project is gratefully
appreciated. Thank you in advance, Ron- Hide quoted text -


- Show quoted text -


Hi Biff, thank you for the quick response. I'm not getting anything
back, I'm getting blank. Should this formula be an Array? I'm not
sure I explained the situation with the data table correctly. The
data table has multiple PO numbers with multiple invoices. Some PO's
will have one invoice while others will have 2 or more and as many as
15.
Thank you for your assistance.


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 for same name, multiple instances... Chris_Hatch Excel Worksheet Functions 19 February 6th 09 03:33 PM
Create list of unique instances from list of multiple Instances Dishon Excel Worksheet Functions 0 March 3rd 08 10:46 AM
How to return multiple instances using VLOOKUP Jaybisco Excel Worksheet Functions 3 August 30th 06 08:28 PM
Lookup against pivot table with multiple instances AW Excel Worksheet Functions 1 January 31st 06 11:34 PM
Extracting/look up data from a list and select multiple instances Candice H. Excel Worksheet Functions 4 April 29th 05 04:38 PM


All times are GMT +1. The time now is 03:15 AM.

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

About Us

"It's about Microsoft Excel"