MAXIF And MINIF Functions With Wildcards

Jul 16, 2009

I have a list of bank transactions in a spreadsheet

for example....

1/7/09 Sainsburys Petrol 34856385
4/7/09 Paypal 92017465
6/7/09 Sainsburys S/Market 38264059
8/7/09 Halfords 93862830
11/7/09 Sainsburys S/Market 34957372
13/7/09 Paypal 92037454
14/7/09 Barclays BCC 173256

and wish to use formulae similar to MAXIF and MINIF to find the last date and the first date of Paypal transactions (for example) if I have just the word "Paypal" in cell D1

I've tried
=SUMPRODUCT(MAX(($B$1:$B$7=$D$1)*$A$1:$A$7))

but obviously this is looking for exact match of "Paypal"

I have successfully used a wildcard in SUMIF functions elsewhere...

eg, $D$1 & "*"

but for some reason
=SUMPRODUCT(MAX(($B$1:$B$7=$D$1 & "*")*$A$1:$A$7))
does not work

Does anyone have any suggestions?

View 12 Replies


ADVERTISEMENT

Minif(s) - Lowest Amount In One Column

May 21, 2014

I'm trying to pull the lowest amount in one column if the values in 3 separate other columns agree.

View 3 Replies View Related

Find Minimum With Criteria - MINIF

Dec 10, 2009

I have following problem I have some table - 2 columns - in first is text in second is value.

example:
A 10
B 5
C 3
A 15
C 8
D 7
A 9

I need to use formula, which shows me minimal value for choosen text. I tried matrix formula like {=min(if(text table=choosen text; second column;0}, but it's not working

View 5 Replies View Related

MaxIf Function

Oct 20, 2009

I would like to write a formula that looks at the last month with a percent value greater than zero, then return the percent value in a specific cell. In the example below I want to display 85.0% in the cell. It should update each time data is entered for the following month.

Here is the source:

MonthPercentage
October 96.0%
November 2.0%
December 70.0%
January 85.0%
February 0.0%
March 0.0%
April 0.0%
May 0.0%
June 0.0%
July 0.0%
August 0.0%
September 0.0%

View 9 Replies View Related

Maxif Function In Vba

Nov 10, 2004

I want to write a reuseable maxif function in vba. The following code is working when entered directly into the cell:

= SUMPRODUCT(MAX((B1:B6=B2) * (A1:A6)))

Now I want to pack this function into vba code to make it commonly available. I tried it with the following code but it doesn't work. I assume there is a problem with the passing of the range parameters. I also tried it with String and Variant as parameter types - without success. Can anybody help me?

Public Function MaxIF(criteriaRange As Range, searchValue As Variant, calcRange As Range)

AciveCell.Formula = "=SumProduct(Max((criteriaRange = searchValue) * (calcRange)))"

End Function

View 5 Replies View Related

MaxIf Across Discontinuous Range - VBA Or Formula

Sep 6, 2013

I want to create VBA code, or a formula that achieves MaxIf across a Discontinuous Range.

I already have the basic Max If array formula which works in another place:

{=MAX(IF(EditAsset_MaintenanceType="Scheduled Maintenance",EditAsset_MaintenanceDateUndertaken))}

Where each named range is a column of 20 continuous cells.

This actually sits within a larger formula {=IF(MAX(IF(EditAsset_MaintenanceType="Scheduled Maintenance",EditAsset_MaintenanceDateUndertaken))=0,EditAsset_DatePurchased+(EditAsset_MaintenanceCycle*30.4167),MAX(IF(EditAsset_M aintenanceType="Scheduled Maintenance",EditAsset_MaintenanceDateUndertaken))+(EditAsset_MaintenanceCycle*30.4167))}

Now I need to achieve a similar thing, but in a master list of all the data which necessitates a different layout so the data can't be in 2 columns, and can't be continuous. So:

Max the dates in cell BE7, BI7, BM7, BQ7, BU7, BY7, CC7, CG7, CK7, CO7, CS7, CW7, DA7, DE7, DI7, DM7, DQ7, DU7, DY7, EC7...

...IF the value of the corresponding cell two columns to the left of each is "Scheduled Maintenance",

e.g. cells BC7, BG7, BK7, BO7, BS7, BW7, CA7, CE7, CI7, CM7, CQ7, CU7, CY7, DC7, DG7, DK7, DO7, DS7, DW7, EA7

I tried creating 2 named ranges (one for the cells in each bullet point above) and using that in the array formula, but that didn't work and as this formula needs to go down 8,000 rows it would require 16,000 named ranges which isn't really practical.

Ideally I think I would perform this calculation in VBA and just output the answer to the relevant cell. [The VBA code will be triggered via a Worksheet_Change event when one of the date cells, or the 'maintenance cycle' cell elsewhere is changed].

I think this could be done by taking the values from the cells above into two arrays, and then 'max if' those arrays within VB somehow - but I don't know how to create the arrays or then perform 'max if' within VBA.

Alternatively a formula would suffice - I could insert this formula into the output cell via the VBA Worksheet_Change event when an input cell (date or maintenance cycle) is changed, and then have the same VBA code copy this cell and paste the value - can't have up to 8,000 array formulas live in my sheet for performance reasons! But I don't think this will be easily possible via a formula and VBA would be cleaner.

View 7 Replies View Related

Find Address Of MaxIF In A Range

Apr 4, 2007

I am having troubles with using two methods together. I know how to find the address of the first or last occurance of a MAX in a range. I also know how to create a MAXIF function using criteria to determine what to consider for the max calculation. I do not know how to return the address of the result from the MAXIF.

I am using Office 2003 on WinXP.

Ultimately I want to take the address of the first result of a MAXIF and use it to do a lookup for a corresponding value. I'm not sure if I will be able to do this with a combination of functions, or if I will need a macro.

Heres an example:

Data:
Time WeekNum Count
01:02 1 12
02:05 1 35
03:09 2 456
14:20 2 123
12:24 2 122
Usage:

Use the maxif lookup to return the time of the largest count for WeekNum 2

Result:
03:09

View 9 Replies View Related

MINIF Function; Find The Minimum Value Of Column A If There Is Anything Greater Than Zero In Column B

Jul 29, 2006

I want to find the minimum value of column A if there is anything greater than zero in column B. I tried this formula (simplified): MINIF(B2:B6,">"&0,A2:A6) And it gives me the # NAME? error

View 6 Replies View Related

"MAXIF" Function, Or Equivalent?

Dec 1, 2008

I have a spreadsheet that I'm working on that compiles survey data from an online survey. I have averages, high scores, low scores, etc. figuring off of my data to product charts and graphs for a client. I am attempting to find the high and low scores for individual surveys (there are 1054 surveys total right now). I know of max and min, but I really need something that would function like a "maxif" (which I realize does not exist).

Here's the problem:

In column A, I have a list of insurance provider names per survey (so, 1054 entries total). I then have some columns in between that show scores on questions from the survey, and then column AB contains my averages for each individual survey. Column AD has a list of the insurance provider names in alphabetical order (there are 167 unique provider names used in the 1054 surveys). Column AF is my high score column and lines up with column AD (so, I am looking to have 167 high scores in total as I want the high score per each provider, not survey). Let's pretend A2:A10 say "Anthem Insurance." I want to create a formula that would basically say something like:

Count what rows in column A = "Anthem Insurance," then match those cells to AB (so, it would figure since A2:A10 are the targeted cells, then I also want to correspond to AB2:AB10) and give me the high score (MAX) for that range of cells. Is there a way to do this? Otherwise, I have to manually go through all 1054 rows and see what range of cells equal a certain insurance provider name to get those 167 high scores. I can keep doing this if I have to, but this data changes every single week and it eats up a lot of time.

View 4 Replies View Related

Sum If And Wildcards

Nov 24, 2006

I'm using the sum if function but can't get the correct answer because the text that I'm searching for includes * which I assume is the wildcard symbol. I'm looking to sum on the text integrated projects* but it's returning a value which also includes integrated projects* VAT.

I don't want to have to change the text (e.g. by using find and replace). Is there any way excel can incluce just the exact text I need (including *)?

View 9 Replies View Related

USe Of Wildcards In Macros

Mar 5, 2007

I need to write a macro whereby it queries a cell and if there is any value (it will be either blank or contain characters) in the cell a new row is to be inserted directly above the cell.

View 13 Replies View Related

Sumif Using Wildcards

Jun 5, 2009

on one page I have a list of dates in one column and a list of numbers in another column. I want to look up January say in the dates column and sum the relevant numbers in the other column, (all the dates start with 01, i.e. the first day of the month), so I tried:

=SUMIF(Sheet2!A6:A117,"01/01/????",Sheet2!I6:I117)

If I put in the exact date, i.e. replace ???? with 2008, then it works fine, just returns the number for that one date, but with the wildcards, I always get zero.

View 9 Replies View Related

Using Wildcards In Find & Replace

Aug 16, 2007

I'm doing a search simular to this

=VLOOKUP(D*,Sheet2!A*:B*,2,FALSE)

and I want it replaced with this

=VLOOKUP(D3,Sheet2!A1:B42,2,FALSE)

HOWEVER when I do the find & replace I don't want it to change whatever the current value is to D3 I want it to stay as whatever it was already....so how do I exempt the "D" value from the search?

View 13 Replies View Related

Wildcards In Array Formula

Jul 8, 2009

I'm working with several columns of data that represent the types of employees we have at my organization. I'm trying to count the number of each type by status, as well as determine the salary payments to each type.

My problem is that we have titles like "PAA I" "PAA II" and "PAA III" and I've not been able to quite figure out the right formula to deal with this problem.

View 2 Replies View Related

Wildcards - Find & Replace

Jul 20, 2009

how to do a find and replace on the following

090226000/Jones/123 Main Street

All data has numerical 9 places first field
I need to eliminate the /Jones/123 Main Street
so that I just have 090226000

I thought * would work but it's not returning the
correct output

View 10 Replies View Related

How To Make A Cell Value Appear As Wildcards

Jul 22, 2013

I have an excel file where the user has to enter his user name and password. But the password that is entered into the cell should appear as Wildcards(*) to everyone (Like our Windows login). Is there any way to do it.

View 1 Replies View Related

Wildcards In Substitute Function

Jul 10, 2007

I have numeric values in approx 1000 cell entries that I need to edit:

example cell C1 contains the value 00100300308W400

I'm trying to edit this entry to show 00/10-03-003-08W4/0.

I've tried using wildcards with the SUBSTITUTE function:
=SUBSTITUTE(C1,"***************","**/**-**-***-****/*")

View 10 Replies View Related

Multi-Conditional With Wildcards...

Jun 23, 2009

I've got a column with client codes (col. B) and another one with material codes (col. C). Both columns mix numbers and text. First condition: If cells in "B" column equal a specific code ("DA2")

Second condition: AND If the cells in "C" column start with a certain pattern ("30") followed by some other pattern (four random digits, a dash, and two or three more random digits). THEN a new cell should say "T1", Else it should just copy another cell.

View 5 Replies View Related

Using Wildcards Within Formula (add Together Will Change)

Jul 10, 2009

=SUMPRODUCT(--('Trial Balance'!A1:A100="6120"),--(ISNUMBER(MATCH('Trial Balance'!B1:B100,{"00.00.01","00.01.01"},0))),'Trial Balance'!G1:G100)

Is there a way to use this formula, but instead of looking in Column B, and having to list 00.00.01, 00.01.01, that it only looks at the last two digits of the ##.##.##.

Here is the issue. Each month, the numbers that make up what I need to add together will change. However, all I am really doing, is combining any accounts that have the same sub account (Column B) ending in the same digits of either 00, 01, 02, or 08. So I could have 01.01.01, 01.00.01, 01.02.01, etc. and I am just focusing on the .01 on the end. I would like to say, look at all the sub accounts in B, and only add (G:G) on those that the last two digits equal .01.

View 2 Replies View Related

Using Wildcards With Search Formula?

Jan 17, 2013

I'm trying to use wildcards in the Search formula and it isn't working the way I thought it would. I'm trying to use the following two strings:

????1234

compared to

1234????

Shouldn't search find these two strings the same since given the wildcards? Or am I missing something? If I use the above, I receive a VALUE error rather than a match.

View 9 Replies View Related

Averageif Function With Wildcards?

Sep 11, 2013

In cells G2 to G57 I have the months from Jan-09 to Aug-13. In H3 to H57 I have the monthly data. In cell k2 I am trying to average all of the December data without individually clicking each cell (Ex: Dec-09, Dec-10, Dec-11, Dec-12). I was thinking of doing Averageif formula like =AVERAGEIF(G2:G57,"Dec*",H2:H57) but I get the dreaded #DIV error.

View 1 Replies View Related

Copy Rows Using Wildcards

Jan 2, 2014

I have a problem with the code below. I've borrowed parts of it from various online sources and attempted to make it my own. I need it to go through a column of data that is imported into column A. The unique search criteria are rows that goes sequentially (i.e. 1, 2, 3). The format for the search is (#. text). I need to copy those rows to sheet 2. The problem with the code is that it only copies the first occurrence of the sequence (the row with 1.) to sheet 2 and stops.

Here's an example of the data:

Kalé

1. Kalé

$$ Japanese, Sushi Bars

Shigezo

2. Shigezo

Southwest Portland, Downtown

Code:
Sub Copy_FSE_yelp()

LastRow = ActiveSheet.Range("A" & Rows.Count).End(xlUp).Row 'Finds last row
For i = 1 To LastRow 'creates loop for column

If Cells(i, 1) Like "*" & "." & "*" Then
Range(Cells(i - 1, 1), Cells(i - 1, 1)).Select
Selection.Copy

[Code] ........

View 3 Replies View Related

Wildcards Not Working In Lookup

Dec 4, 2007

When I use a lookup to look for "*"&A1&"*" where A1 contains "AB" I get a value not available error despite the fact that in the postcode table there are loads of postcodes beginning with "AB...". Is it the multiple entries of "AB" in the lookup table that will be messing this search up?

View 9 Replies View Related

Find/replace And Wildcards

Jan 17, 2008

I have about 80 cells in a row with a varient of this in it:

=VLOOKUP($C2,LookupData!$B$494:$G$699,6,FALSE)

The strings on the LookupData sheet change to look for different things, but

I want to modify to this:

=(.01*VLOOKUP($C2,LookupData!$B$494:$G$699,6,FALSE))*$F2

I can locate all the cells in question using EDIT>REPLACE,

FindWhat=VLOOKUP(*,*,*,*)

But when I put this
=(0.01*VLOOKUP(*,*,*,*))*$F2
in the ReplaceWith box, and try to replace, I get an error message saying the formula contains an error.

Once I figure this out, I'm filling down about 60000 rows, so I'd like to get it right the first time.

View 9 Replies View Related

Advanced Filter With Wildcards

Oct 28, 2008

I have a worksheet that conatins multiple columns that are populated from a sql query.One column is a parts list.This has 1705 rows.

I have another worksheet that contains a list of parts in one column.This list is varying in row length.

I want to be able to produce a list that only contains matching data , including () around parts and if not too difficult an indication of data that is not in first list but is in second list.

When I do an advanced filter using the second list as the criteria i am not recieving all of the data from the filter , ie in the first list there is parts in (1234XYZ ) but in the second list the part is 1234XYZ , this part is not being resulted in the advanced filter unless I put brackets around the part in the second list . There is no way of knowing which part is in brackets in the first list.

View 9 Replies View Related

Match With Wildcards In An Array

Jan 16, 2009

I matching up some ip numbers against some ip ranges and I'm finding I can only use the wildcards in the first argument and not the second array argument. Is that the case? Here's my files:

IP_List
141.188.146.000 =match(A1,IP_Range!A:A,0) Doesnt work
156.140.216.202

IP_Range
141.188.???.??? =match(A1,IP_List!A:A,0) works

I really need the first case to work (looking up an ip in the ip range). Is there a way to do this?

View 9 Replies View Related

Use Of Wildcards & Exceptions In A Lookup

Dec 15, 2009

I have a workbook (Data) that I am entering "job title" into column G. Based on key words in the job title I am then manually entering "level" into Column V.

I have created a worksheet (Level Matrix) that has the following

Column A = Job title
Column B - Level
Column C = Exceptions

What I have in column A are the key words - as an example *Director* (wildcard Director Wildcard); in column B is the word Director

What I want the system to do is look for the word DIRECTOR anyplace in the job title entered into Column G of the data worksheet (hence why I have the title between wildcards. IF it finds it then I want to add the level automatically (from Column B of the Level Matrix worksheet).

However if the compare finds any of the words in the title that match any of the words in the Exceptions Column (Column C of the Level Matrix) then I DO NOT WANT To autoload the Director level- it would load DNA. As an example- an Art Director would not load "Director" becasue the word "art" is one of the words in the exceptions column of the Level Matrix.

View 9 Replies View Related

Wildcards In Conditional Formatting

Jul 22, 2003

I have discovered that I can use a wildcard in a function such as =COUNTIF(B3:H14,"L*"). This will count all cells in the range that start with "L". However, I can't get it to work with conditional formatting. Is that correct? I am using Office 2000.

View 9 Replies View Related

Find And Replace Using Wildcards

Apr 27, 2006

I know that I can use Ctl H to Find and replace say all APTs by typing APT*.
Here's a small sample of my data. How do I get rid of the letters at the end of the street numbers so that I can sort properly?

KOGASAKA561 KAWAINUI ST
MORIMOTO570 KAWAINUI ST
KERNS587 KAWAINUI ST
TOI587 KAWAINUI ST
UNO606 KAWAINUI ST
CAVACO611 KAWAINUI ST
TAKARA315A KAWAINUI ST
NAKAMOTO350A KAWAINUI ST
NISSLE419B KAWAINUI ST
MONTANA419C KAWAINUI ST
LIU428A KAWAINUI ST
HABERSTROH533A KAWAINUI ST
IIDA545A KAWAINUI ST
MEYER328 KAWAINUI ST
AKITA331 KAWAINUI ST

View 3 Replies View Related

Compare Data Using Wildcards

Dec 15, 2006

I need to match up two columns of data. I need to match the first column with text in the second column that is "like" the first. Example..

Column A
111

Column B
000111222


Basically I need to search on only part of the text in column B. So I would need to wild card both sides of the text like "*111*".

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved