Re: Conditional sum matching two columns and a row

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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" <L@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4069409A-4138-42CE-8026-C3669AA66B4B@xxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: Query using database criterion
    ... The idea is when a user enters blank under any numeric field critreial, he should be presented ALL the records; sureprisingly this works only for text data. ... you said you find the way to count blank cells and also find solution by using two rows for formulas and including them Qry_Criterion range. ... But I am using multiple field criteria to filter the data based on user input under many field headings. ... Some of the field creitera require the formulas to prefixed and/or suffixed wild cards the user input. ...
    (microsoft.public.excel)
  • Re: Inputting criteria into a macro/vb code
    ... "Dave Peterson" wrote: ... I didn't know the name of the sheet that held the info (or what cells), ... criteria and operator for each of the 3 autofilters will change or be empty, ... Sub TEST() ...
    (microsoft.public.excel.misc)
  • Re: Inputting criteria into a macro/vb code
    ... If .FilterMode Then ... "Dave Peterson" wrote: ... I didn't know the name of the sheet that held the info (or what cells), ... criteria and operator for each of the 3 autofilters will change or be empty, ...
    (microsoft.public.excel.misc)
  • Re: Advanced Filter for Text String
    ... Where Title1 and Title2 are the titles at the tops of your data columns F ... Use this as the Criteria range for Advanced Filter ... then use M1:M2 as your criteria cells in the advanced filter dialog. ...
    (microsoft.public.excel.worksheet.functions)
  • Re: Inputting criteria into a macro/vb code
    ... The only operator that I saw that was necessary was in the first filter. ... criteria and operator for each of the 3 autofilters will change or be empty, ... and an operator in cells a1 and a2. ... Sub TEST() ...
    (microsoft.public.excel.misc)