#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default subtotal, match?

Morning all.
I need to do a name check to match with a subtotal function. Is that
possible?

I was thinking that subtotal(Func_Num,match(....)) might handle it, but I
don't see anything that'd allow for that in the list of function numbers for
subtotal.

My goal is to perform a subtotal type operation, to compare names in a field
range from one worksheet to another. I'm already performing a subtotal
operation on one field, and wanted to do an if test on the names that show up
with each operation. With the false response, I'll then be changing the name
element to match my source data.
I hope that's clear-- if not, please let me know.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendem

Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default addendem

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendum 2

I've now tried vlookup and it too isn't giving me what I'm looking for.
My eq arrangement is:

=VLOOKUP(SUBTOTAL(109,range),range,1,FALSE)
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendem

Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single criteria. In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some kind of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.


Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default addendem

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.


Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendem

Details:

Sht1!A4:A188 = parcel #'s
Sht2!A4:A289 = parcel #'s

In column F (both sheets) the name of the owner appears. I.e., the row for
the specifed parcel will show all pertinent data, of which, column F shows
owner's name.

Below all my data, in an open area, I want to place the equation to check
the filtered names.
This will prevent me from having to check back and forth between both
worksheets when the owner's name already matches.

Something of an IF eq'n. I just want to have it say- 'ok' if values match,
and the correct owner's name if they don't match.

Hope that's clear....

Thanks again for all your help-- it's really appreciated.


"T. Valko" wrote:

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default addendem

Ok, let's start with this and go from there...

One thing to note, working with filtered data is not easy! Microsoft only
provides for the most basic of analysis functions for filtered data. Sum,
Average, Count, etc.

This array formula** will return the *first* name from the range
Sht1!F4:F188 when you filter (or don't filter) on a parcel number in column
A. I assume you want the formula on Sht1.

=INDEX(F4:F188,MATCH(1,SUBTOTAL(3,OFFSET(F4:F188,, ,ROW(F4:F188)-ROW(F4)+1)),0))

Now, if you want to compare that name to the name on Sht2 that is also
filtered on the parcel number then we have to extract that name also:

Array entered** :

=INDEX(Sht2!F4:F289,MATCH(1,SUBTOTAL(3,OFFSET(Sht2 !F4:F289,,,ROW(Sht2!F4:F289)-ROW(Sht2!F4)+1)),0))

Then, you can compare the results of those 2 formulas:

=IF(A1=B1,do_this,do_that)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Details:

Sht1!A4:A188 = parcel #'s
Sht2!A4:A289 = parcel #'s

In column F (both sheets) the name of the owner appears. I.e., the row for
the specifed parcel will show all pertinent data, of which, column F shows
owner's name.

Below all my data, in an open area, I want to place the equation to check
the filtered names.
This will prevent me from having to check back and forth between both
worksheets when the owner's name already matches.

Something of an IF eq'n. I just want to have it say- 'ok' if values match,
and the correct owner's name if they don't match.

Hope that's clear....

Thanks again for all your help-- it's really appreciated.


"T. Valko" wrote:

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single
criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One
wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some
kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have
no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



.



  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendem

Good morning Biff....

One way to tell I'm in trouble is when guys give me these kinds of
notes......
"One thing to note, working with filtered data is not easy! Microsoft only
provides for the most basic of analysis functions for filtered data. Sum,
Average, Count, etc."

Why is it that I'm always the one out on the cutting edge? ;-)
Even my colleagues keep telling me that I'm just expecting too much from
Excel! Who-da thunk it?!?!!!

I'll try these and go from there. Thank you for your help-- it's IMMENSELY
Appreciated!!!



"T. Valko" wrote:

Ok, let's start with this and go from there...

One thing to note, working with filtered data is not easy! Microsoft only
provides for the most basic of analysis functions for filtered data. Sum,
Average, Count, etc.

This array formula** will return the *first* name from the range
Sht1!F4:F188 when you filter (or don't filter) on a parcel number in column
A. I assume you want the formula on Sht1.

=INDEX(F4:F188,MATCH(1,SUBTOTAL(3,OFFSET(F4:F188,, ,ROW(F4:F188)-ROW(F4)+1)),0))

Now, if you want to compare that name to the name on Sht2 that is also
filtered on the parcel number then we have to extract that name also:

Array entered** :

=INDEX(Sht2!F4:F289,MATCH(1,SUBTOTAL(3,OFFSET(Sht2 !F4:F289,,,ROW(Sht2!F4:F289)-ROW(Sht2!F4)+1)),0))

Then, you can compare the results of those 2 formulas:

=IF(A1=B1,do_this,do_that)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Details:

Sht1!A4:A188 = parcel #'s
Sht2!A4:A289 = parcel #'s

In column F (both sheets) the name of the owner appears. I.e., the row for
the specifed parcel will show all pertinent data, of which, column F shows
owner's name.

Below all my data, in an open area, I want to place the equation to check
the filtered names.
This will prevent me from having to check back and forth between both
worksheets when the owner's name already matches.

Something of an IF eq'n. I just want to have it say- 'ok' if values match,
and the correct owner's name if they don't match.

Hope that's clear....

Thanks again for all your help-- it's really appreciated.


"T. Valko" wrote:

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single
criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One
wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some
kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have
no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



.



.

  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,814
Default addendem

Hi again.
This looks great! Thank you.
You da Man!!!

(and my point on my previous post was that-- Yes, I am aware of the limits
that Excel has placed on filtered data. This is why I come post and ask
dense, thick-headed questions that are poorly phrased.) I know.... I am
learning though.

Again-- thank you for your help.

"T. Valko" wrote:

Ok, let's start with this and go from there...

One thing to note, working with filtered data is not easy! Microsoft only
provides for the most basic of analysis functions for filtered data. Sum,
Average, Count, etc.

This array formula** will return the *first* name from the range
Sht1!F4:F188 when you filter (or don't filter) on a parcel number in column
A. I assume you want the formula on Sht1.

=INDEX(F4:F188,MATCH(1,SUBTOTAL(3,OFFSET(F4:F188,, ,ROW(F4:F188)-ROW(F4)+1)),0))

Now, if you want to compare that name to the name on Sht2 that is also
filtered on the parcel number then we have to extract that name also:

Array entered** :

=INDEX(Sht2!F4:F289,MATCH(1,SUBTOTAL(3,OFFSET(Sht2 !F4:F289,,,ROW(Sht2!F4:F289)-ROW(Sht2!F4)+1)),0))

Then, you can compare the results of those 2 formulas:

=IF(A1=B1,do_this,do_that)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Details:

Sht1!A4:A188 = parcel #'s
Sht2!A4:A289 = parcel #'s

In column F (both sheets) the name of the owner appears. I.e., the row for
the specifed parcel will show all pertinent data, of which, column F shows
owner's name.

Below all my data, in an open area, I want to place the equation to check
the filtered names.
This will prevent me from having to check back and forth between both
worksheets when the owner's name already matches.

Something of an IF eq'n. I just want to have it say- 'ok' if values match,
and the correct owner's name if they don't match.

Hope that's clear....

Thanks again for all your help-- it's really appreciated.


"T. Valko" wrote:

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single
criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One
wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some
kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I have
no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



.



.



  #11   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default addendem

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Hi again.
This looks great! Thank you.
You da Man!!!

(and my point on my previous post was that-- Yes, I am aware of the limits
that Excel has placed on filtered data. This is why I come post and ask
dense, thick-headed questions that are poorly phrased.) I know.... I am
learning though.

Again-- thank you for your help.

"T. Valko" wrote:

Ok, let's start with this and go from there...

One thing to note, working with filtered data is not easy! Microsoft only
provides for the most basic of analysis functions for filtered data. Sum,
Average, Count, etc.

This array formula** will return the *first* name from the range
Sht1!F4:F188 when you filter (or don't filter) on a parcel number in
column
A. I assume you want the formula on Sht1.

=INDEX(F4:F188,MATCH(1,SUBTOTAL(3,OFFSET(F4:F188,, ,ROW(F4:F188)-ROW(F4)+1)),0))

Now, if you want to compare that name to the name on Sht2 that is also
filtered on the parcel number then we have to extract that name also:

Array entered** :

=INDEX(Sht2!F4:F289,MATCH(1,SUBTOTAL(3,OFFSET(Sht2 !F4:F289,,,ROW(Sht2!F4:F289)-ROW(Sht2!F4)+1)),0))

Then, you can compare the results of those 2 formulas:

=IF(A1=B1,do_this,do_that)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the
SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Details:

Sht1!A4:A188 = parcel #'s
Sht2!A4:A289 = parcel #'s

In column F (both sheets) the name of the owner appears. I.e., the row
for
the specifed parcel will show all pertinent data, of which, column F
shows
owner's name.

Below all my data, in an open area, I want to place the equation to
check
the filtered names.
This will prevent me from having to check back and forth between both
worksheets when the owner's name already matches.

Something of an IF eq'n. I just want to have it say- 'ok' if values
match,
and the correct owner's name if they don't match.

Hope that's clear....

Thanks again for all your help-- it's really appreciated.


"T. Valko" wrote:

Ok, need some of the details...

Sheet1 A2:A10 = parcel numbers
Sheet2 A2:A10 = parcel numbers

You filter both sheets on parcel number 999.

Now what? You said you want to compare owners. Ok, so where do we look
to
see if the owners are the same?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Don't feel bad Biff.
I get pretty dense too..... Hence my poor explanation...... ;-(

Ok, what I'm doing is filtering two wksheets, based on a single
criteria.
In
my case, a property parcel #.

My goal is to check the name of the owner's on each wksheet. One
wksheet I
know is valid, the other is to get it correctly updated.

If the name from pageA matches the name on pageB, then great-- some
kind
of
a TRUE statement, as in an IF equation.

I've tried vlookup, match, subtotal, and an IF. So far my attempts
have
met
with #N/A Errors.

It seems to me that vlookup should work, if I have the correct
order.
Because I'm filtering, it seems that subtotal would be required too.

At this point, I'm wondering if some UDF might be required, but I
have
no
idea where to take that idea.


"T. Valko" wrote:

I hope that's clear-- if not, please let me know.

Well, it's not real clear to me. But sometimes I'm really dense!

It sounds/looks like you want to a do a "SUM IF" on a filtered
range?

"SUM column B IF column A equals Joe" on a filtered list.

Am I close?

--
Biff
Microsoft Excel MVP


"Steve" wrote in message
...
Ok, I realized that I had this backwards, so I tried
Match(subtotal(109,range),ArrayRng,0)
and it doesn't work either.



.



.



.



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
sort macro, subtotal and add lines after subtotal David Excel Discussion (Misc queries) 1 August 29th 09 10:56 AM
Double Pivot Table - Match Subtotal Rows Mathew P Bennett Excel Discussion (Misc queries) 2 August 8th 08 03:43 PM
pasting to subtotal lines without replacing hidden -non-subtotal l harleydiva67 Excel Discussion (Misc queries) 1 October 12th 06 06:02 PM
Bolding the subtotal lines automaticlly When using the Subtotal fu 06Speed6 New Users to Excel 2 October 5th 06 03:52 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


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