Find MAX Value Based On LEFT Of A Number Of Cells With IF Statements?

May 21, 2014

Im trying to pull together a formula to achieve the below. What i have is a spreadsheet to be used by staff in different countries so im looking to make it easy to modify the categories used without the user needing to do anything complex with formulas.

The right hand side of my file (C:E) shows a code for each year we have covered a country with the year as a prefix (2014 - Blah). The left (A:B) is a summary showing the latest year we covered that country.

Current formula:
{=IF(COUNTA(C2:D2)<=0,"","✔-"&MAX(LEFT(C2:D2&"0",4)*1))}

The current formula works fine if you set the columns to where the data actually is but for ease of use i need it to look at the data in rows 1:2 and match up the Continent/Country and then MAX the dates.

View 1 Replies


ADVERTISEMENT

HLookup Find Minimum Number In Row Then Return Left Most Number?

Mar 1, 2012

Items in Column A1 are calculated by (B2/4+5)*1.4 Items located under the columns 2000, 3000, 4000, etc... 10,000 are calculated by taking the top number, eg 2000/(A1 cell value)+the column B number. 2000/7+0 = 286 (rounded numbers)

I need to find an way to look up for x number (2000,3000,4000, etc...) find the smallest number in that column and then return the value in column A1.

Cell
A1 Number >2000300040005000600070008000900010000
70 2864295717148571000114312861429
84 24236148059971883795610751194

[Code].....

View 2 Replies View Related

If/then Statements: Find All Blank Cells In Column

Oct 24, 2007

I am manually scrolling through Excel right now to find all blank cells in column L. Some cells have dates, others are blank. IF L is BLANK, I go to row K and copy/paste row K to row L. IF K is BLANK, I got to row I and copy/paste to row L.
Is there a statement I can put into row L to basically say "If blank copy/paste from row K. If row L and K are blank go to row I and copy/paste to L." ???

View 4 Replies View Related

If And - If Or Statements: Import ( On The Left) And Input By Hand To Get The Process Going

Dec 14, 2008

The questions are shown on the attached spreadsheet. There are 2 questions one on each sheet. On the spreadsheet the yellow cells indicate data that I'd import ( on the left) and input by hand to get the process going. The green cells have the correct numbers in them but I've had to manipulate them by hand.

View 5 Replies View Related

Send Mail On Outlook Based On Number Of Days Left To Deadline?

Jun 28, 2014

I have an excel sheet with one column containing deadline dates. I want the excel sheet to take each day's date and subtract it from the deadline date. If number of days left is less than 60. Send a mail via outlook to the email against that column.

View 3 Replies View Related

Shift Cells Left Based On Text Value

Oct 20, 2009

I need assistance in shifting cells to left based on three (3) specific text values in column B. There are tons of data and extra lines and stuff but consistently these three (3) text values are consistently not aligned and I simply need to shift entire row 1 space to the left. I can do the long and tedious process of going through them all but is there a macro which I can play that does it instantly...

View 9 Replies View Related

Excel 2010 :: Shifting Cells Left And Then Up If Left Cell Is Blank?

May 8, 2014

I have a 2010 excel sheet containing 14 columns and 45082 rows in total. I am quite illiterate when it comes to writing macros but I know that what I need can be achieved with a set of codes.

To be more clear, I inserted two tables below. The first one represents the current data structure, and the second one is the way I want my data to look like.

Current data structure looks like
Variable 1
Variable 2
Variable 3

[Code].....

View 9 Replies View Related

Find/Left Functions: Grab Everything Left Of The Last Occurrence Of "." In A String

Nov 19, 2009

I want to grab everything left of the last occurrence of "." in a string, and in the next cell everything right of the last occurrence of "."

so say the string is 111.111.1.222
column 1
111.111.1

column 2
222

my current code (which works, but its messy) for the first cell is

View 3 Replies View Related

If Blank Cells, Paint Yellow. If Cell To Left Is Less Than A Number, Don't Paint

Sep 8, 2009

I have a spreadsheet which contains 39 columns with a header row. The number of rows varies per spreadsheet. I'm running into a problem with highlighting(painting yellow) cells. Really the problem is selecting the cells to be highlighted. The macro is skipping some of my code completely and in other cases leaving some cells unhighlighted.

1. All blank cells in row AG should be painted yellow.

2. If column AF contains a cell with number 900 or greater, then the cell in AG (same row) should NOT be painted yellow.

3. All blank cells in rows AC and G should be painted yellow. Some spreadsheets may not contain blank cells.

Problem with the VB is not performing the code after the first command. It will highlight MOST of the cells in AG but for some reason it is leaving a few blank ones unhighlighted. The blank ones are usually at the bottom of the rows. I have no idea why it would miss these.

I believe the "ucase" tag is incorrect since its looking for a number but I am not sure what to put in its place and if I use something else should I dim it as ""?

I've attached an excel spreadsheet which contains a sample to this problem. I've also attached what it should look like if my code worked.

View 6 Replies View Related

Find The Number Based On Other List

Oct 21, 2009

I have a new list of Serial Numbers that were given to me in an Excel file. The original source of the data was an AS400 database.

I wanted to "Find" some of these numbers in another list that I already had (List B). So I selected a cell in the new list, and pressed Ctrl-C. I then selected all of List B, opened the Find dialog box and used Ctrl V to paste in the Serial Number to find. The problem was that Excel said it could not find the Serial Number, even though I knew there is a match, and could see the number it should have found.

So I pasted the number I was searching on into an empty cell. When I checked the length, it was one character longer than expected. It turned out that that there was an extra leading space. I could delete this space in the cell, but not in the Find dialog box.

Also, when I selected the number in the cell, and this time highlighted it all, then copied it, and then pasted it into Find, the Find worked! In other words, it only didn't work when I did Ctrl C without selecting/highlighting the text.

View 9 Replies View Related

Find Highest Number Based On Name

Dec 5, 2008

In sheet 1:
I have a list of customers and their current credit limit

In sheet 2:
i have a list of all payments received in the last 12 months.

my customers credit limits are set by multiplying their highest payment in the last 12 months x 1.25
(e.g. payment of $1000 x 1.25= limit of $1250)

what i want to do is:
1) look at the customers in sheet 1

2) check sheet 2 to see if they have made a payment

3) return their highest payment (if any) in sheet 1 Col. C

4) i can work out the rest

View 9 Replies View Related

FIND From Right Instead Of Left?

Nov 26, 2008

Obscure lines of info which I'm trying to break up into pieces. Being able to find from the right instead of left would be REALLY handy. See attached example with details and example!

View 3 Replies View Related

Find Last 12 Values Based On Week Number / Year

Jul 9, 2014

I am trying to fill a table of the last 12 values for the purposes of creating dynamic charts. I remember last time i used named ranges, offsets etc etc but been too long to remember how.

Ive attached a worksheet to explain it better.

I should probably mention, I want to be able to change cells C1 and C2 to update the values. Everything else wil be rather static.

Attached File : Test.xlsx‎

View 5 Replies View Related

Find Column Reference Than Using A Chain Of IF Statements

Aug 31, 2009

I have a table of some numbers, and along the left side is a column representing what each row of data is. So in this case, it is a list of letters. What I'm doing is in each column of the data, I find the maximum number, and then I want to have it list below that what letter that maximum number is from. Here is an example:

View 2 Replies View Related

FIND From Right To Left Or Similar?

May 2, 2014

Cell A1 = 78-36

This is a win/loss ratio so to have it as a percentage I would have to divide the first number by the sum of the two numbers so 78/114 = 68.4% How would you do this with a formula?

I came up with this that isn't quite right, because RIGHT and FIND don't work together.

=LEFT(A1,FIND("-",A1,1)-1)/(LEFT(A1,FIND("-",A1,1)-1)+RIGHT(A1,FIND("-",A1,1)-1))
There must be a smarter way of doing this. TY

View 8 Replies View Related

Find Number Of Cells In A Range

Nov 30, 2007

I am trying to find number of cells in a range.
I tried:

=COUNTIF(U97:U103,AND(">"&5,"<"&8))

and assumed it will count the 6 and 7's.

It always results with 0.

View 10 Replies View Related

Find Cells With Same Value And Assign A Number To Each

Jun 11, 2009

I use my spreadsheet to keep score during tournaments. when i calculate my leaderboard at the end of the event i list the results first place all the way down until it finishes the list of players. i need to be able find players with the same or equal score and list them as tied for the same place.

another words if i get to the 3rd place and i had 3 players tie for third i need my leaderboard to show them all in 3rd place . currently it would number then 345. i listed below how it should format it. i also attached a file it will make it more clear.

View 2 Replies View Related

Find First Number In Specified Cells Then Average?

Feb 8, 2013

We are trying to track the average star values of reviews posted to our clients accounts. Here is an example of the spreadsheet we have set up:

Company Name
Review 1
Review 2
Review 3
Review 4
Review 5

Company 1
[CTY] 4 Stars review content
[ISP] 5 stars review content
[GGL] 4 stars review content
[CTY] 3 stars review content
[YELP]5stars review content

In this example, we use the initial [ ] to track which site the review was posted on ex: [CTY] means city search, [GGL] means google, etc.

We want to be able to track the average star value on each site. So the formula for City Search would scroll across the row of reviews, pick out reviews 1 and 4 and then find the first number in each and average them. The result in this case would be 3.5

From the research we have done so far, this looks like it will require a complex array formula. How to make this formula? Is this even possible what we are trying to do?

View 5 Replies View Related

Find A Number In An Array Of Cells

Mar 3, 2008

I have named cells. Rw1, Clm1 and Blk1

I have the numbers 1 through 9 in cells A1:A9

I need to create formulas to find a certian number.

Example:
A2 would have the value 2
If $A$2(value 2) is in Rw1 or Clm1 or Blk1 then "" if not $A$2

View 9 Replies View Related

Find Blank Cells With Number

Mar 6, 2008

I have this formula in columns C:D and G:F -

Try this formula. Array formulas will have curly brackets {} emcompassing the ENTIRE formula. You do not add these, you Enter the formula with Ctrl+Shift+Enter and Excel will add them (details: Array formulas). Many more Excel Formulas

=IF(ISERROR(MATCH(A1494,Jan07!A:A,0)),"",INDEX(Jan07!A:B,MATCH(A1494,Jan07!A:A,0),2))

Some of the cells end up with nothing in them. Columns E and H are the differenced of C & D and G & F respectfully. The problem is that some of the cells in E and H state #VALUE! because there isn't any data in the other columns (C2 is blank, D2 is 24, E2 is #VALUE!). If I update C2 with 0 then I receive the correct answer in E2 of -24.

I want to have a macro auto fill all blank cells (even though there is the formula in them there isn't data) with a "0". I am using the below code and it is Compile error: Type mismatch at the "True" part of the code.

Sub FindEmptyCellAutoFill()
Dim rFound As Range

With ActiveSheet.Range("C:D", "F:G")
Do
Set rFound = . Find(What:=" ", LookIn:=xlValues)
If rFound Is True Then AutoFillValue "0"
If rFound Is False Then Exit Do
Loop
End With

End Sub

View 3 Replies View Related

Find Specific Withdraw Entries From Bank Statements

Jan 6, 2010

I use online banking for paying my monthly bills. I get different confirmartion for each pay transection. Pls look attached Excel file. Now I want to find specific bills expense with amount from all my 12 months bank statements. How can I get this task done.

Note: Each time get different confirmation which appears on my bank statement beside paid bill name. for example January 2009 statement GAS Z8A.... Feb 2009 GAS S2W. I hope this clarify. What I have to do if I want to get all my 12 months GAS money withdraw from bank statement. I use csv file for bank statement.

View 11 Replies View Related

Adding Multiple Find With Left / Right

Feb 21, 2014

I am compiling a database of tennis stats for various players. I input the set scores (like 6-4) and I then need excel to find "-", go to the left and right, and add up all cells containing these scores on a full row.

For example:

6-4, 6-4, 6-4 would become 18-12

I can do this by using "find" and left/right. The problem is, the more records I add, the more I have to keep changing the formula.

[Code] .........

Is there a faster way to do this, preferably without using macros.

View 14 Replies View Related

Find Text Right And Left Of A Comma

Feb 22, 2008

I have the name bloggs, Joe in cell A1. Is there away to flip the name around and get rid of the comma.

i.e. Joe Bloggs

View 9 Replies View Related

Substitute Function With Find, Mid & Left

May 25, 2007

Got the following formula:-

=LEFT(L5, FIND("(",L5)-1)

I need to add the SUBSTITUTE function to this but can't figure out where it goes if somebody could point me in the right direction please? My substitute formula is SUBSTITUTE(L5,"car","train").

View 4 Replies View Related

Find First Non Blank Cell And Return Number Above It Based On Lookup From Other Sheet

Oct 18, 2013

I have two spreadsheets.

spreadsheet 1:
Lookup from Order numbers listed from A5:A177.
requested formula in I5: I would like a lookup to sheet 2 based on the order number (F19:F191), to return the cell above the first non-blank value.

spreadsheet 2:
Lookup value:Order number listed from F19:F191.
Data search:AY19:CI191
return the (date) which is in the range above the data search from row AY18:CI18.

I've had a look at few forums but i'm getting mixed responses, having to use index / match / lookup / min / --.

View 6 Replies View Related

VBA Code To Find Row Number Based On Data Via Input Box And Highlight Cell?

Jun 21, 2014

I want to enter a unique ID into an input box which will tell which row that id is available and then it will again ask me which column the cell needs to be highlighted. Once i enter the data, it will then ask me what is the change in data (again via input box). i can then enter the change data and then it stops.

View 1 Replies View Related

Reducing Number Of If Statements In Code

Sep 3, 2006

i have a simple if statment

If cboname.Value = Sheets("Data Sheet"). Range("E2") Then
txtpay.Value = Sheets("Data Sheet").Range("F2")
End If

this need to be done for a large list of names and input into another sheet. what i wanted to know was if there is a quicker way of doing this code without repeating the code loads of times

View 9 Replies View Related

Find Number Combination In A Group Of Cells

Oct 28, 2011

I'm looking for another excel game changer (for the work I do anyway).

I have a dollar amount, and I want to know if any combination of dollar amounts in a particular range of cells will equal that dollar amount. Is this possible in Excel?

Example: I have 20 different dollar amounts in a column. I want to know what combination of those 20 different dollar amounts, if any, will equal $257.97. The dollar amount I'm looking for and the numbers in the range will change with each use. I'm hoping for a formula, but VBA will work too as I could just make a template and copy / paste the numbers in.

View 6 Replies View Related

Sum Cells Great Than Certain Number Then Find Average

Mar 6, 2014

I need to find the cells that are greater than 48 and then find the average of this number.

Is there a formula that could put this together?

Average if greater than 48.xlsx

View 1 Replies View Related

Number Of Cells Found By .Find/.FindNext

May 8, 2009

I'm trying to use the .Find and .FindNext functions to find how many cells in Worksheet("WAS") have the same value as the ActiveCell (B3 in this case) on the Worksheet("DDS"). Basically i'm just trying to figure out how many times this sub goes through the Do While loop. However, "tick" keeps coming back as a value of 1. I know there's something I must be doing wrong or something i'm not allowed to do but i'm still pretty new at this.

View 2 Replies View Related







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