Using MATCH To Find A Figure?

Feb 7, 2014

I have been building a tracker to track benefit payments for child benefits and DLA so I know where I stand and what has been paid.

The problem... its limited and basic an I have to do most things manually, even when I have cell formulas to do some of the legwork.

I stumbled across the term MATCH and SEARCH and I was curious on how to use them for my needs, I was trying to use the LOOKUP set of tools.

My problem...

Benefit rates are set between two date periods, all payment periods are 28 days apart (...but could change to every 7 days) which means that sometimes payments are due 3 weeks of one rate, 1 week of another, the reverse of that or 50:50 depending on the cycle.

A
B
C

[Code]....

The problem should be very evident and especially when I adjust the dates to match what payment dates I finally end up with.

The result of the look up needs to be calculated at the frequency in A14 to B14, A15 to B15 (for example) at the appropriate rate found in D:D when searched for based on the dates in A14 to B14 ... ... etc.

I tried using MATCH to get a match to a date falling between 30/12/2013 and 4/4/2014, I tried this...

=SEARCH(A15,MATCH(B15,A4:F8,1),A15)

which returned #N/A

View 6 Replies


ADVERTISEMENT

Subtotals - Grand Total Figure Doesn't Match

Nov 11, 2009

I am using subtotals for a large spreadsheet showing various sales by person and area. I have sorted the data by area then by person and insterted subtotals. All columns are fine, except two. On two columns, the grand total displayed does not match the sum of the areas.

If I remove the subtotals and sum the columns, they are all correct. It is only when using the subtotal function that the error occurs, and only ever on these two particular columns.

View 9 Replies View Related

From A Value Select A Range Then Find The Specify The Highest Figure

May 19, 2009

I am trying to work out how to select a range from a formula.

One formula works out when a specific number in a list of rows is reached, and returns the number of values it counted before it reached the number.

MATCH(TRUE,INDEX($A$2:$A$50>=B1,0),0)

With the figure returned from that can I then select the range from the first row, to the number of rows counted. And with that selection find the highest number within that range, specifying the highest number as the result?

View 14 Replies View Related

Find Centre Of 6 Figure National Grid References

Feb 6, 2014

Is it possible to find the centre point of these 6 figure National Grid References (sample)

345723842214
346094842080
346087842611
346359842379
346502841967

These are point on a map - these points will vary and the number of point will vary too,

View 8 Replies View Related

Highlight Cell And It Takes The Figure Within In Away From Another Figure?

Feb 18, 2013

I've got a spreadsheet with several rows and the numbers within those rows are totalled up at the bottom. Is there a way where i can highlight the cell within the spreadsheet and it takes it off the accumulative total at the bottom? or something similar to this effect? I just don't want to have to remove figures from this spreadsheet and highlighting will be a good way of seeing what has been done

View 1 Replies View Related

Combine Text & Figure When The Figure Is In -ve?

Oct 14, 2009

I learnt that " " & can combine the text and figure. However, when it comes to a negative numbers, i dont know how to maneouver it. Eg, Cell A1 is USD(50,000.00) and the comment in Cell B1 is Cost is USD(50,000.00). So the function in B1 = "Cost is "& what to put here?

View 3 Replies View Related

VLookup To Pivot Table Using Match Function - Returns Error If Can't Find Match Value

Mar 11, 2014

I am having some trouble getting a formula to work. I am building a report that pulls figures from a pivot table in another workbook. I am using a vlookup with match function to get the column index to find the relevant data I want. Where I need to add two columns together I am using sum, with the vlookup & match formulas nested in them e.g.:

=SUM(VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("FAID",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("BPCM",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE),VLOOKUP(F13,'[PIVOT 156.xlsx]PIVOT'!$C:$AQ,MATCH("COMD",'[PIVOT 156.xlsx]PIVOT'!$C$6:$AQ$6,0),FALSE))

Where:
F13 = Employee number
Column C on the pivot 156 workbook is where the employee number is based.
The Match formula is then getting the column index from the column headings of the pivot table ie. "FAID"

This in itself works fine, as long as it finds a match in the column headings. This is where i get the error as in the above function "COMD" is not in the pivot table. However I need to keep it included as it may appear on a future pivot table. Is there a way of getting the sum function to complete even though later in the formula it can't complete the vlookup? So it will ignore it, or assume the value is zero if it can't find it? The formula probably needs to do this for all the vlookups as some headings may drop off in future pivot tables.

View 2 Replies View Related

Find In VBA Code: Find Exact Match

Oct 9, 2006

I'm using the below VBA

Dim c, DataRow
With Data
Set c = . Range("A5:A350"). Find(KPI, LookIn:=xlValues)
If Not c Is Nothing Then
DataRow = c.Row
End If
End With

Now,If KPI is for example = "Favourite Hotel" and if i have data that looks like :

Favourite Hotel - London
Favourite Hotel - Cardiff
Favourite Hotel
Favourite Hotel - Birmingham

Then it seems to not look be looking for an exact match (e.g. Favourite Hotel) and rather is finding the first item in the list that contains the KPI string (E.g. Favourite Hotel - London).

How do i make it search for an exact match?

View 4 Replies View Related

Find And Match Fields

May 7, 2014

I have a workbook with two sheets, one used for referance (Column A - Product SKUS, B - Product Description and C - Carton Quantities) - Sheet 1

The other sheet I would like to import incoming shipments. (Column A - Product SKUS, B - Product Description, C - Quantity Ordered and D - No of Cartons) - Sheet 2

What I need to do is find out how to get Excel to find and match up the SKUs in Col A and then dividing Sheet 2's column C by Sheet 1's column C to give the number of incoming cartons of each product in Sheet 2's Column D

View 5 Replies View Related

Find First Non-zero Cell Without Using MATCH

Jul 23, 2014

I have a formula that has been working perfectly:

[Code] .....

It works until I exceed the MATCH character limit of 255 characters in the range with text. I have tried many alternate formulae found on various posts, but not one that suits my purpose. Is there a simple ISTEXT or another function/formula that will work here?

Attached File : Too much text.xlsx

View 4 Replies View Related

Find And Match Query

Dec 2, 2009

I've got a sheet here with a master list of document numbers in Column A and a smaller subset in column C. I need to do is for Excel to scan column A for cell C1 and when it finds it in column A i need it to return the corresponding value in B column into cell D1. I need to do this for all column C.

View 2 Replies View Related

Find Value And Match With Title?

Jun 26, 2013

I have the table with multi columns and values like in the image below:

Untitled-2.png

how to get the result in the red border.

View 2 Replies View Related

How To Use Multiple Find Match

Jan 23, 2014

[Code] ......

findmatch.xls <----- attached file

View 2 Replies View Related

Match & Find Function

Jan 8, 2009

In Sheet 2 i have a 1000 of data contains the birth date of following customers

The result i want in Sheet 1 is
particular on todays (Say on 27-11-2008) date how many customer are having birthday, supoose there 10, or 8 wahtever should show me the list.

I tried this formula

=INDEX(Sheet2!$B:B,MATCH($B$3,Sheet2!$H:$H,0))

but by this formula it only show one customers birthdate what i want if there 10 differenrt customer those same birthdate it should display all the 10 date and name in diff rows

View 12 Replies View Related

Find And Select Match

Nov 12, 2009

I have a sheet with dates on it, when i open my userform and select a date i want it to go to the sheet and look for a match on the date and select the cell where the match is. There will never be 2 dates that's the same. I have attached an example.

View 2 Replies View Related

Find Closest Match To A Given Value

May 6, 2009

In the attached sheet, I am using !Staff times columns N and O to nominate a mid point break time relevant to the start,lunch break and finish times of a shift.

What I would like to do is match the result to the closest time from !Race Times Column D (highlighted green). So if for example the mid point of the shift is 10:37 (as in !Staff Times cell N23), it actually comes back with the !Race Times result of 10:35 which is the closest actual race.

Ideally I would like it to look both sides of the midpoint time until it came to the closest match, rather than always looking at an earlier time, or always a later time (eg the cell N79 has a value of 11:36, however the 2 race times are 11:35 and 11:40. Preference is it shows 11:35). If however the N79 result was 11:38 or 11:39, I would prefer it went to 11:40).

However if this is not possible then picking the next time in either direction will do.

View 4 Replies View Related

RND Function And Match To Find Value?

May 8, 2012

I have a column of values (text) to choose from. I need to randomly assign them to names.

There are more values then names.

Each name has to have a value.

Each value has to be used only one time.

Not every value has to be used.

Column B contains names, column Q contains values.

Now. So far I've come up with below:

Code:
Sub randomize()
Dim Random As Integer[code].....

"Random" returns exactly the amount of values in column Q, so this works ok.

"i" counts iterations correctly, meaning as many times as names in column B.

I tried useing Match to rule out already used value but this code returns "unable to get Match property of the WorksheetFunction class" error.

View 6 Replies View Related

Find If Number Is A Match

Mar 19, 2013

Trying to find if the number entered in the input box "num_cmp" is => Cells(i, 2) AND

View 4 Replies View Related

Find And Match The Value In Column

Jul 25, 2007

A--------------b----------------c
1 abc klm-sometext
2 def nop-sometext
3 ghi def-sometext
4 klm
5 nop ghi-sometext
6 abc-sometext

i want a macro , so that when it is run,
it matches the value in column A with value in Column C
and update the same in Column B

For example the macro should find

A1 Value = abc with C6 Value= abc-sometext
and update
B1 value as = abc-sometext

So after running the macro
the excel sheet should look like this

A-----------------b------------------------c
1 abc abc-sometext klm-sometext
2 def def-sometext nop-sometext
3 ghi ghi-sometext def-sometext
4 klm klm-sometext
5 nop nop-sometext ghi-sometext
6 abc-sometext

View 9 Replies View Related

Index Find Next Match

Nov 3, 2008

i am trying to find all the 0 in column P and return col M from the same rows, this finds the 1st, how do i find the rest?

=INDEX(M$3:M$100,MATCH("0",P$3:P$100,0))

View 9 Replies View Related

Find The Name Vlookup Or Match

Feb 4, 2009

I am trying to insert a formula to find the name (match?) from one column on say sheet 3 and return the value in the next column.

column a sheet 1
my name
your name
someone else

I would like it to search sheet 3 column a and return value sheet 3 column b

as sheet 3 would look like this

col a / col b
john q / 11a
my name / 13b
someone else/ 9a
your name/ 12b

What my goal is - is to only have to enter the column b in sheet 3 one time per name and have it fill in on sheet 1 for every entry of multiple entries of the same name in column a if that makes sense.

I know this should be simple- I want to avoid the if statement as there will be about 50 names to sort and return the proper class (column b)

View 9 Replies View Related

Vba Find A Match In A Column

May 17, 2006

Find a match in a column, move over two columns and copy sales amount. I have a column (column A) of week starting dates (52 each -- e.g., 4/10/06, 4/17/06, etc.).
I have captured a date in a vba variable and I would like to search through this column (52 rows) and when I find a match, move over two cells and copy another variable (a sales amount figure)...?

View 5 Replies View Related

Find Method When No Match

Nov 8, 2006

I am going through various excel sheets looking for certain text on them. not all of the sheets will have the text.

I have been using

Cells. Find(What:="FindMe", After:=ActiveCell, LookIn:=xlFormulas, LookAt _
:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
False).Activate

and it works fine, if the text is on the sheet. When the text is not on the sheet, how should I handle this.

I have tried On Error and IsError variations, but could use a little guidance

View 4 Replies View Related

Find Or Match Value In Range

Apr 29, 2007

The bottom line is: I want to determine whether a value exists in a column and get beyond #N/A error values if it does not.

I have a range (B15:B26) in which the months of the year that are applicable in a specific situation will be entered using this formula in B16 and copied down to B26:

=IF(D16<$G$5+1,IF(B15<12,B15+1,1),0)

In B14 the starting month is drawn through from G4, e.g. 11 (for November) is entered in G4.

In G5 I enter the term of the investment in months, e.g. 3.

In column D, I start with 1 in D15 and add 1 to the previous cell as you go down column D, e.g. D16 =D15+1.

OK, there you have it, but I attach a file anyway.

Now, I'd like to figure out whether the values 2 or 3 appear in the range B15:B26 once the starting month and the term of the investment have been entered in cells B14 and K5.

If, as an example, I enter 11 (November) as the starting month and 3 as the term, range B15:B26 will show B15=11, B16=12 and B16=1, for January of the new year.

Below that, all cells will show 0, with the result that 2 or 3 does not appear in the range.

I used =MATCH(2,B15:B26,0) to find 2, for example, but if it's not there, it returns the #N/A error value. If it is there, it returns an actual value, and whatever it is, I at least know that 2 is present. This check is in cell I5.

Only the #N/A value shows that it does not exist.

I now want to write an IF function using this error value, but I am really battling with it! If (in cell I6) I use: =IF(ERROR.TYPE(I5)=7,0,MATCH(2,B15:B26,0)). If cell I5 contains the #N/A error (meaning 2 is not present), the aforementioned formula find the answer to the "logical test" true and answers "0". This "0" is easier to use in other functions than the error.type function as far as I am concerned, so I am happy to know that the "0" value in cell I6 indicates that a 2 was not found in the range.

So far so good.

The previous IF function returns the #N/A value if a 2 is found, however!

The MATCH portion of the formula is exactly the same as the other MATCH function in cell I5, so what is wrong with my formula?

What should I do to find out if a 2 (or a 3) exists in the range mentioned?

View 4 Replies View Related

3 Criteria Find & Match

Feb 16, 2008

I have three sets of columns with addresses. I'm looking for a match/index/vlook up formula that can search all three columns and list the matched addresses in another column. Also note that one or two of the columns are formatted differently (although there is enough information to match closely to the other columns where relevant).

View 2 Replies View Related

Find And Match Between Two Columns

Aug 2, 2008

I have records on columns A and B. I need to find the matches between the two columns and insert it into column C. My sample only shows a few. But my actual data has hundreds of records.

View 9 Replies View Related

Using Find Method To Match Dates

Dec 2, 2009

I am trying to use the .Find method to match a date. In sheet2 I have a range of cells which are formatted to only show the day "dd" (I could format each cell to show (dd-mmm-yy, etc). In sheet1, I have dates which are formatted as "January 7, 2009"

I want to create a VBA find routine which allows me to match the date from Sheet2 (Ranged between cells A1:Z1) with Sheet1. Then output a MsgBox stating "Match found in cell $A$7 of Sheet1" I have tried a formula similar to:

PHP Set FoundCell = Sheets("Sheet1").Range("A1:Z1").Find _
(what:=DateValue("January 7, 2009") ,lookin:=xlFormulas) 

View 5 Replies View Related

Find And Match To Fill Data

Feb 23, 2009

I humbly seek assistance and help to fine tune my "find and match" function that works between 2 files. I am using the following:-

=INDEX('[Jan 2009 Sales & Gross Profit Record.xls]PG'!$D$3:$D$12,MATCH(C4,'[Jan 2009 Sales & Gross Profit Record.xls]PG'!$F$3:$F$9,0))

My problem is I am only able to do it in D9 where customer and amount are matched correctly. But when customer appears more than one then it doesnt match corectly.

View 13 Replies View Related

How To Find Exact Match To A Cell

Feb 18, 2012

I'm trying to find an exact match to a cell and not xlPart of it, but not sure what the syntax is, (Always where can I find a list of the properties?

Code:

Set Ran2 = Worksheets("TicketsList").Range("B8:IV200").Find(Count, lookat:=xlPart)
If Not Ran2 Is Nothing Then
CallRow = Ran.Row
CallCol = Ran.Column
End If

MsgBox "Row is " & CallRow & "Column " & CallCol

View 1 Replies View Related

VBA Find Exact Match And Nth Occurrence

May 30, 2012

This section of code I am working on requires me to find an exact text (I tried lookat:=xlWhole, but I can't get it to work right). The problem being is when it searches for Q1, Q10 is an acceptable answer ans so on. I need to get the 4th occurrence, but my research into Nth occurrence stuff is confusing.

The search is in a single column.

With Workbooks("FY12-Q3 Data Tables.xlsx").Sheets("PBA Crosstabs").Columns(1)
Set c = .Find(rCell, LookIn:=xlValues, lookat:=xlWhole)
Set c = .Find(rCell, After:=c, lookat:=xlWhole)
Set c = .Find(rCell, After:=c, lookat:=xlWhole)
Set c = .Find(rCell, After:=c, lookat:=xlWhole)
End With

View 9 Replies View Related







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