Finding A Return Values

May 22, 2008

Here is a little formula I working on:
=IF(MID(A1, LEN(A1),1)="i", "x", "")

As it is, it would return an X if the last value of a string is "i"
What I want to really do is check if the last value is a " qoute but it seems you can't put """ or you get an error -- example: =IF(MID(A1, LEN(A1),1)=""", "x", "")

View 9 Replies


ADVERTISEMENT

Finding Multiple Values To Return Multiple Values

Apr 18, 2008

I have a bill of materials with a description column. I want to search that column for various words (ie. wheel, screw, spacer, shelf, etc) and return a value into another new column depending on that value (wheel inputs wheel, screw inputs hardware, spacer inputs hardware, shelf inputs shelf).

How Excel shows you how to search will only return one value because I can't use an else statement:

View 14 Replies View Related

Finding Value In Array - Return Value On Same Row But Different Column

Feb 7, 2012

I have an array that is 60x100 (column x row).

I'm trying to search for a value in that array and return the value on the same row, but shifted to the right one column.

Example: If my value is found in D63, I want to return the value in E63.

I've been messing with Index, Match, and Offset, but I can't get anything working.

View 4 Replies View Related

Finding All Alike Values And Summing Up Corresponding Column Values

Jan 31, 2012

Here's an example of what I need..

I want to

A B
2.5 corn
4 corn
7 green
2 green

I'd like a macro to find all corns, add up the column A for each corn and place the sum beside the last corn in column C

Then do the same with green, etc.

View 2 Replies View Related

Finding String In Excel Using VB6 ADO - Return Column And Row

Jul 13, 2011

I am trying to use ADO via VB6 to find a specific input in row A of my excel sheet.

I then want it to return the Column and Row to me separately.

I have a code I already use for returning specific values from cells:

Code:
Function Look(ClosedWorkbookFullName As String, _
SheetName As String, RangeAddress As String) As Variant

Dim conn As Object, rs As Object, SQL As String
Set conn = CreateObject("ADODB.Connection")
Set rs = CreateObject("ADODB.Recordset")

[Code] ......

Now I want something like this I can use as a function, but it obviously needs tweaks.

View 1 Replies View Related

Macro To Return Value By Combining 2 Cells & Finding Mat

Dec 15, 2006

I have a step in a very long macro to populate a sheet (SheetMaster) with the course completion status based on another sheet (SourceData) in the same workbook.

On "SheetMaster" Col E starting with row 2, I want to look at whether a concatenated value of E1 + A2 is in Col G in "SourceData". The macro should run until it gets to a blank row in Col A.

Here is an example to help illustrate the logic:

E1 = Ethics101
A2 = 123456
A3 = 654321

If Col G in "SourceData" contains "Ethics101-123456", E2 = "Complete", if not "Incomplete"

If Col G in "SourceData" contains "Ethics101-654321", E3 = "Complete", if not "Incomplete"

...and so on until it gets to a blank row in Col A...

View 9 Replies View Related

Summing Values After Finding Max Consecutive Values

May 11, 2009

I have 10 columns (A-J). Column B is the Date & Column C is the Time, I have the data sorted 1st by date then by time. The 5th Column, E, is Size. The 10th column, J, is "Position."

This 10th column, J, is in binary format. A 1 equals a Position & a 0 equals no Position.

1) I need to find the Max Sum of the Size in which the Max consecutive set of 1s has occurred.

2) I need to also do this on a day by day basis, using the Date in Column B, without having to manually go through & modify all the formulas to reference the date.

I have a Sumif formula for the 2nd but it won't copy down to update the formula for each unique date. I have to manually change the date values & I have ~957 unique dates to do; so it would be a rather painstaking process if only done manually. Moreover, it doesn't count the Max Sum of all consecutive 1s in Column J...

The length of the non unique columns (all columns w/o unselecting the duplicate entries) is 19,068.

If you can be of help, I'd be very thankful...my brain is overloaded w/googling & using trial & error.

View 6 Replies View Related

Finding Row - Getting Max Of That Row And Copying Some Values

Apr 29, 2014

Basically what I need is to find a row (I'm doing it by matching the row title that is 'BALANCE'), then I need to find the max value in this row (the problem I'm having is that the row number is not constant), copy that value in another cell and copy the name, that is located in the same column, next to the previous copied value.

View 2 Replies View Related

Finding Multiple Values At Once?

May 27, 2014

Actually i have to two sheets. In (1st file) I have the data of customers. And in (2nd file) I get the approved sales. So i have to find the numbers.

In my sales sheet, there is data of customers like name, address, phone number etc.

In my sales report sheet, i got multiple numbers in a notepad file which are rejected sales.

So basically, i have to copy every number one by one, and then have to find it in my excel sheet with CTRL+F and then i change the color of that cell which is rejected.

I want magic by which i simply add all the rejected numbers in one column of my file, and then do Abra Cadabra by which all the numbers which are rejected get in red colour automatically in the column in which there are all the numbers (approved as well as rejected).

View 13 Replies View Related

Finding Values With Two Parameters

Feb 5, 2009

I have a spreadsheet in which one column I'm trying to find a value in another table that has 3 columns (A, B, C). I need to find all the values in A, that fulfill the parameters of less than 1.5 in B, and great than 5% in C.

They all need to be listed in column H while skipping the records that do not meet this criteria.

View 9 Replies View Related

Finding Values Within Two Ranges

Feb 18, 2013

I have people who wrote down that they attended a location on a certain date at a certain time, and I have their start and end time.

So for example my person data has something like this:

Arrive: 1/1/12 7:00 AM,
Leave: 1/1/12 10:00 AM

Arrive: 1/1/12 3:00 PM
Leave: 1/1/12 4:00 PM

Arrive: 1/4/12 8:00 PM
Leave: 1/4/12 10:15 PM

I also have those fields formatted as text and as decimals so I can work with whatever I need.

The next portion is a list of events that occur at these same locations. Here are some examples.

Event 1
Start: 1/1/12 8:15 AM
End: 1/1/12 12:15 PM

Event 2
Start: 1/4/12 3:00 PM
End 1/4/12 8:30 PM

What I need to find out is if the person was present at the location during any of the events.

A person may write down more than one visit to the location in a day. The events only happen once per day. I'm sure there's a pretty manual way to do this, however the list of people and events spans an entire year and it will be too time consuming to do it that way.

View 2 Replies View Related

Finding The Last 10 Values In A Column?

Apr 29, 2013

I have a graph which is reading from a table. This graph is reading flows from a flow meter, but after reading data for over an hour the graph gets really squished. I'm looking at creating another graph with just the last 50~ values from one column. Is there a way I can create another table that only reads the last 50 values from one column?

View 6 Replies View Related

Finding Duplicate Values Using VBA?

Aug 19, 2013

I have multiple columns / rows of data, some of which are duplicates.

Column S is a concat of columns A:R where this data is stored, and is sorted alphabetically.

I'm looking for a way using VBA to find duplicate concat rows by cycling through this list that is already sorted. I'm interested in moving down this list, 1 by 1, and if current cell = cell above, delete the data in columns A:P of that row, then delete the cell data in column R of the cell above the current cell.

So for example, if I have sorted data in S8:S14, and S9 = S8, then I would like to delete A9:P9, then delete the data in R8.

View 3 Replies View Related

Finding Min And Max Values From Array

May 9, 2014

I have been trying to set up a macro to find the Minimum and Maximum values from an array of temperatures for painting... so far, partially successful.

The problems I am having are that the values have 1 decimal place and can be anywhere between 22.7 to -1.4. When they come they are put on the spreadsheet, the MinTemp can be 10.0 and MaxTemp 9.9, totally reversed.

Dim Info(2000, 2) As String
Dim MonthValue(31, 9) As Variant
Dim Working1 As Date
Dim I As Integer
Dim J As Integer
Dim Tot As Integer

[code]....

View 2 Replies View Related

Finding A Cell Given X And Y Values

Jul 13, 2006

I have a worksheet where column A is a list of numbers and Row 1 is a different list of numbers

Is there a way to activate a cell given the column A value and Row 1 value? (so I can then insert a value)

View 9 Replies View Related

Finding Values In Array

Mar 27, 2007

I'd like to know if exist a procedure/ function to find a argument in an array and return the index/address of the argument at the array.

For example, I have a array contaning a list of products. i'd to create a function that finds the index of a particular/list of products, feeded as arguments, and returns the indexes locations.

View 9 Replies View Related

Finding And Replacing Multiple Values?

Jun 14, 2014

I'm currently doing a project which requires me to find and replace a large number of values.

ie. Column A Row 1 = 80099, Column A Row 2 = 554441, Column A Row 3 = Z5478, CAR4 = B89877 etc...

I need to replace these numbers with meaningful values and I have a reference table to tell me what these codes mean ie. 80099 = apple juice, 554441 = orange puree, Z5478 = pumpkin soup, B89877 = banana smoothie. The reference table is in a separate excel spreadsheet and is tabulated in two columns ie. Column A = "the code", Column B = "the value".

There are like 1000+ codes I need to find and replace which I know is going to kill me if I did it manually. How do I find and replace all the values?

View 14 Replies View Related

Finding Values By Using Text In Other Cell

Jul 3, 2014

I am trying to create a cell that show the value of all specified rows with specific name.

For example:

Apples $2 $5 $10
Oranges $5 $10 $50
Apples $5 $ 6 $ 60

(each of these will be in their own cells, 3 rows and 4 columns)

How do I create a cell that will sum the total value of all the Apples by using Apples as the variable?

View 1 Replies View Related

Finding #N/A Values And Delet Row Macro

Jun 16, 2009

pick a column to test in, this column should be one that will have #N/A error displayed in it and that 'goes as far down the sheet as you need to examine for the #N/A conditions although not all entries have to be #N/A just something in them to the end Using column E for this example as E was where I put a VLOOKUP() formula to test/generate #N/A errors. Const testColumn = "E" change as required
'no other changes to make

Sub DeleteNARows()
Dim naRowList As String
Dim anyRange As Range
Dim anyCellEntry As Range
Set anyRange = ActiveSheet.Range(testColumn & "1:" & _
ActiveSheet.Range(testColumn & _
Rows.Count).End(xlUp).Address)
For Each anyCellEntry In anyRange
If anyCellEntry.Text = "#N/A" Then
naRowList = naRowList & anyCellEntry.Row & _....................

View 2 Replies View Related

Finding Maximum Value While Excluding Some Values

Feb 2, 2006

I have a row of data with the cells I want to find a MAX for are separated from each other:

a1=300 d1=500 g1=800 j1=10,000

I want to find the MAX value for a1,d1,g1,j1, but exclude any value over 1000. So instead of =MAX(a1,d1,g1,j1) returning 10,000, =???(???) will return the next highest max of 800.

View 14 Replies View Related

Finding Matching Values In Cells

Oct 26, 2008

I have a sheet that returns 4 numbers where 2 will match. Is there a command that will return that matching value?

For example:
cell 1 = 5
cell 2 = 9
cell 3 = 4
cell 4 = 9

something to return the value 9

View 2 Replies View Related

Finding Percentage Of A Range Of Values

Feb 13, 2009

I have a little table:
Columns A:B (separated by commas)
Row 1- Year One, 20
Row 2- Year One, 20
Row 3- Year One, 10
Row 4- Year One, 30
Row 5- Year One, 20
Row 6- Year One, 20
Row 7- Year Two, 10
Row 8- Year Two, 20
Row 9- Year Two, 20
Row 10- Year Two, 10
Row 11- Year Two, 20
Row 12- Year Two, 40

In the adjacent cells in columns C (C1:C12) I need a formula that would turn the value into a percentage of the total of the values for that year (e.g. in C1: 20 is 16.7% of 120, so the value displayed would be 16.7% (or 0.167)).

View 3 Replies View Related

Finding Matching Values In Different Sheets

Oct 11, 2011

I have in Sheet 1 a list of product codes (that should be only numbers, i.e: 1010) on column A, product description on B and a sales column on C.

On Sheet 2 I have on column A I have in the same cell a letter "C" the product code and the product description(i.e.: C1010 Onions). On column B I got the sales total. ( I dont care about the letter "C" it can be deleted)

I would like to use a VBA code to find the same product codes between sheet 1 & 2 and copy the sales total from sheet 2 to sheet 1 when the product code is the same.

View 1 Replies View Related

Finding Values Based On 2 Criteria

Mar 7, 2012

I need to be able to find a value in another sheet based on 2 criteria

The criteria is a number from a column on my first sheet where the results will reside, the second criteria is based on a fiscal year (calculated based on the year of the current year).

The formula I use is as follow:
=LOOKUP(BA2,Budgets!B:B,Budgets!I:I)

and this is what I use to get the column:
=+INDEX(Budgets!B11:B200,MATCH(Budgets!B11:B200,Budgets!B11:AB200,0),3) getting #N/A here

and I use this too:
=MATCH(IF(MONTH(TODAY()) < 7,YEAR(TODAY()),YEAR(TODAY())+1),Budgets!E:Q) getting #N/A here too

If i keep it like that no problems but I will need to change the criteria 2 every new fiscal year.....

What I need is to replace the criteria 2 with something that will find the proper column wher the data is the fiscal year is listed on E11:Q11..

I have tried index and match and quite frankly, I never made it work, always getting an error.

View 9 Replies View Related

Search Cell Not Finding Values?

Dec 20, 2012

Code:
Sub DeleteCells()
Dim ws As Worksheet
Dim cell As Range, search_cell As Range
Dim i As Long

[Code]...

A few issues with the above code: I have manually checked that there is a sheet with a value in M12 that is found in the H column range, but it doesn't change the value to zero. (this was confirmed with an =IF(M12 = H101,1,0) returning a 1 value.

Secondly, it takes a long time to process not a lot of data. (about 2 minutes to get through 3 sheets of 180 actual rows of data, (rest blank). Is there any way I can speed it up? I will eventually be cranking it up to 30 sheets of data and up to 360 rows. (The 500 was thrown in earlier to make sure it covered everything).

finally, it also lines every cell value in I(end of data):I501with a zero, when there are blanks in other cells, can i get it to not put a zero in,

View 5 Replies View Related

Formula For Finding / Replacing Values?

Jan 14, 2013

I have two pairs of columns, A B and E F.

Column A contains one numeric value in each row. Column B lists one person's name in each row.

Column E contains a distinct list of the names found in column B (no repeats), with one name in each row. Each row of column F contains one alpha ID that belongs to the adjacent name in column E.

I need to replace each name in column B with its respective alpha ID from column F, effectively pairing each numeric value in column A with an alpha ID from column F.

Have I stated my goal clearly enough? I could Find/Replace a few hundred times, but I thought there might be a better way using an Excel formula. I'm a beginner-intermediate user, and I clearly don't know enough about Excel to even ask about specific functions for this task.

View 1 Replies View Related

Finding Values In Entire Workbook?

Jun 3, 2013

I have a list of 120 values in column A. Is there a quick way to search the entire workbook and return what tab the value appears in column B ?

View 2 Replies View Related

Finding Unique Values In A Column?

Nov 22, 2013

I have an excel sheet with about 1000 reference numbers in. I would like to know how many of these are unique...they look like this:

UCR104

UCR1042

UCR1043

UCR1048

[Code] ........

View 4 Replies View Related

Finding Value Based On Two Values In Columns And One Value In A Row

Mar 19, 2014

A
B
C
D
E

[Code]...

In the example above I am trying to look up a value from columns C-E. I need to be able to search/index using 2 criteria to figure out which row to match with the given column. for example: If I want to know the invoice qty. for R&D for Jan-2012, so the returned value would be 13. I have tried several different combinations of match and index to get this to work but have had no success. Ultimately what I want to do is have a drop down for the month and year that our VP can select and it will give him the given values for that month.

View 1 Replies View Related

Finding Empty Cell And Using That Row For All Other Values

May 19, 2014

I am trying to write a macro that looks for the first empty cell in column G, Then once that cell if found, assigns that row to be the row that other data is copied and pasted to. My code currently just finds the first empty cell in each column and copies and pastes the data and am not sure how to get it to what i need it to do.

Code:
Sub seconddatatransfer()
Dim wb1 As Workbook, wb2 As Workbook, sh1 As Worksheet, sh2 As Worksheet
Set wb1 = Workbooks("filestransfer.xlsm") 'Edit file extension
Set wb2 = Workbooks("KBCG.xlsm") 'Edit file extension
Set sh1 = wb1.ActiveSheet
Set sh2 = wb2.Sheets("Tracking Sheet")
sh2.Cells(Rows.Count, 2).End(xlUp)(2).Value = sh1.Range("B6").Value 'left

[code]....

View 4 Replies View Related







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