Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Conditional sum matching two columns and a row

It "finds" (matches) the first TEXT entry after the specified name to define
the range. For example:

A2 = Name1
A3
A4
A5
A6 = Name2

Suppose the name criteria is Name1. We need to know where Name1 ends and
Name2 begins. That's what MATCH("*"...) does. It finds the criteria Name1
then finds the next TEXT entry which would be Name2 then just calculates how
many cells are in between to give us the range for Name1 which would be
A2:A5. We get the other columns using OFFSET.

Biff

"~L" wrote in message
...
After reading the formula, there's only one that that confuses me... What
is
match("*" ...(etc) ) matching?

"Biff" wrote:

OK, here's a sample file:

Sum non contiguous criteria range(1).xls 14.5kb

http://cjoint.com/?jAemVQezto

The sample formulas are based on 3 criteria: Name, code and property.
You'll
notice that I left the code criteria cells empty and just hard coded that
criteria directly into the formulas. We can make that more dynamic by
simply
entering some code in the criteria cells but I don't know what all your
different criteria might be. The formulas calculate on the name, the
property and codes that contain "OT".

The "complicated" version is based on the description of your post using
merged name cells. For that version I added an "end of range" flag.

The "simple" version uses the helper column F where the names are in
every
cell.

There's quite a difference between versions.

Biff

"~L" wrote in message
...
I am still following. I have not yet found a solution in a simple
formula
and have begun breaking it down into a more complicated series of
formulas.

By the way, I figured out that the reason the "*OT" wasn't working in
my
other formulas was because they were array formulas and wildcards are
not
allowed (as of Excel 2000, I don't know if that changes in later
versions).

Unfortunately the program I'm exporting from merges the cells
automatically
where there would be a space in that header column. It would be easy
enough
to create a macro to unmerge all the merged cells and fill the boxes
with
the
information of the box above it, but one of my goals is to not
manipulate
the
export data if possible.



"Biff" wrote:

Are you still following this thread?

This can be done based on your current layout but it is extremely
complicated. On the other hand, this would be extremely simple if you
could
change the layout to include the persons name in every cell of the
header
row. Then, just a basic Sumif would do the job.

Biff






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
Conditional formating: Compare two columns with Inserted lines Tim Excel Worksheet Functions 1 September 12th 06 03:34 AM
"Text to Columns" for many columns in Excel 2003 NickName Excel Discussion (Misc queries) 12 September 8th 06 10:14 PM
matching values in columns that contain duplicates jellybean Excel Discussion (Misc queries) 8 August 15th 06 02:13 AM
Returning a Value by Matching Two Columns of Data Christine Edwards Excel Worksheet Functions 5 May 10th 06 07:28 PM
Conditional Formatting 4 Columns David Excel Discussion (Misc queries) 14 April 12th 06 10:42 AM


All times are GMT +1. The time now is 12:28 AM.

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"