Attempting To Use Goal Difference As Tie Breaker (Possibly Using IF?)

Apr 18, 2014

Basically it is another sports modelling experiment that I have had (I get the day off work and come up with things like this ), where I just had a curiosity to play out the last games for the top 3 teams in the English Premier League (just to see if I could get some percentages).

The attached, is just the values from one run of my model (I have taken the workings out to reduce the size and for other reasons).

Basically everything to the left of column K, is the model and I am happy with it (and I know goals have to be integers - this is basic);

This plays the games out, and feeds the data into the table at M36 (highlighted yellow), which feeds the data tables at M42 (highlighted green), which are counted to get percentages in the tables (highlighted yellow at M6).

I have put some example output from runs on the second worksheet (so you can see how it works - I like that it suggests Chelsea can win even though it won't be very likely )

Basically you can probably see the problem in cell O22. The percentage chance of finishing first should equal 100% when totalled (e.g. the sum of Liverpool, Chelsea and Man City finishing first, as it has to be one of them should equal 100%). I tracked this back to the fact that I had no way of splitting teams level on points. As a result I added Goal Difference to the model (crudely - e.g. decimal) and here's the question;

How would I go about using Goal Difference to break tie's effectively?

I am thinking I could do some kind of IF function in Q37 (and then have a tie-breaked rank in column R to feed the data tables), on the basis of if anything in N37 to N39 was equal but I am not sure how I would go about applying this.

Example Values_EPL.xlsx

View 10 Replies


ADVERTISEMENT

Rankif With Tie Breaker?

Aug 11, 2014

I want to be able to rank different IDs for a certain name based on $$$. For example, if person A has several IDs, I want to be able to tell the top 5 IDs based on $$$. Also, there are two problems. One is, there are several duplicate IDs and I want to rank "None" for those which already have rank. Second, there are different IDs with the same $$$, I want to be able to tie break those.

View 3 Replies View Related

Sentence Breaker

Sep 22, 2009

I have a word document with sentences which has to be broken down with length of 65 characters (words should not be broken). This has to be stored in consecutive cells.

Example

sample text input

This is a sample sentence format from a document which has to be broken down with length of 65. This is created by 'VENOM' on 22-09-2009 for sampling it into a excel sheet named as 'The sample.xls'.

Output

This is a sample sentence format from a document which has to be
broken down with length of 65. This is created by 'VENOM' on
22-09-2009 for sampling it into a excel sheet named as
'The sample.xls'.

REQ:
1. words should not break
2. words with special characters should not break(like.. 22-09-2009)
3. words in quotes has to come in full (like.. 'The sample.xls'.)

View 9 Replies View Related

Ranking With Tie Breaker

Nov 21, 2006

I'm tring to solve an issue with ranking with a tie breaker. I don't know how to explain it without sounding confusing so I'm attaching a sample, but basicly I want to be able to rank people with certain points and a set tie breaker value.

View 2 Replies View Related

Vlookup Possibly Changed - Calculating The Change In The P&L Values

Oct 2, 2007

Currently I am using a vlookup for 19,000 columns or so. Basically what I am doing is calculating the change in the P&L values from when I ran the file currently to when I ran it previously. I have a macro that pastes the old data to sheet "PL Changes" and then the new data on "PL Detail" All the Vlookup is doing is taking 2 criteria(from A and E and comparing them to a concatenated formula in column A on "PL Changes" then returning the old value in column 5. Is Vlookup the most efficient or is Match() any quicker. Right now it takes almost a minute for it to calculate cells and I was hoping to reduce that time as this data may get longer: ...

View 9 Replies View Related

Ranking Based On Criteria With A Tie Breaker

Jan 15, 2010

I've got 3 columns of info.. Name, Org, #Sales, $$..

I need to rank the list by:

Org, $$, #of Sales (as the tie breaker)

So, I need it to look for a specific Org Dept in Column B, rank the Dollar Amounts in column C, and if there are any ties, go to #Sales in column D and use the biggest number there to break the tie.

I've found 2 formulas..

This one was awesome for looking for the specifc Org Dept and only ranking those numbers that matched the designated Org Dept. (but this can't break any ties)..

IF(ISERROR(MATCH($O3,LARGE(IF($P$3:$P$53=R$2,$O$3:$O$53),ROW(INDIRECT("1:"&COUNTIF($P$3:$P$53,R$2)))),0)),"",MATCH($O3,LARGE(IF($P$3:$P$53=R$2,$O$3:$O$53),ROW(INDIRECT("1:"&COUNTIF($P$3:$P$53,R$2)))),0))

Then there's this one that broke ties, but can't recognize a specific Org Dept that I need..

=RANK($O3,$O$3:$O$53)+SUMPRODUCT(($O$3:$O$53=$O3)*($F$3:$F$53>$F3))

View 9 Replies View Related

Excel 2010 :: Difficulty Breaking Link Possibly Caused By Name Function

Sep 11, 2013

I have researched a problem I am experiencing in Excel 2010 and have had problems in the past with previous versions. It seems that occasionally I run across a link that just refuses to break. During my research I have found some reports that this may be linked to the "Name" function. !!!Bing!!! the light comes on. When I copied my template to my new folder and tried to cut and paste data into it I got a message saying something like "A formula or sheet you want to move or copy contains the name "...", which already exists on the destination worksheet." and I opted to replace the existing name with the new one.

Apparently I created an external link at that point and one that cannot now be broken unless I delete my named range and start over the naming process. I mention this here because I see lots of people having this problem and the stock answer is to goto the Edit Links menu and attempt to break the link. Try as they and I might, this doesn't work. I also saw a post about it being a phantom validation problem and that too panned out although I can see how the validation could be linked externally and create this problem.

Does this accurately describes the issue and is there a remedy besides re-creating the "Names"?

View 1 Replies View Related

Attempting To Sum Only If Certain Text Is Present

Feb 1, 2008

I'm currently trying to sum across a row only if certain text is present. So, if A1 has CT8 and A2 has 5 and A3 has CT5, I want to just sum the cells with CT in them. I've already worked out how to strip the CT from the numbers in the sum, but not how to specifically only sum if CT is present. And of course, the sheet uses other letter/number combinations that need to be separately summed.

View 9 Replies View Related

Attempting To Copy Date From One Sheet To Another

Apr 14, 2014

I have been attempting to copy a date & time with a specific format from one sheet to another and add " before and after it in the same field. This is being done to create a specific csv format for date.

The Formula I am using on sheet3 is - =IF(Sheet1!A3="","",Sheet2!I3&Sheet1!G3&Sheet2!I3)

The Values I am using are below
Sheet1!G3 Format = yyyy-mm-dd hh:mm:ss
Sheet1!G3 = 2014-02-11 07:00:00
Sheet2!I3 = "
Formula Results = "40219.2916666667"
Intended Formula Results = "2014-02-11 07:00:00"

I have used a similar formula for other fields within the xlsx, and the only one I am having issues is with the date field. It keeps converting to a serial number when the calculation occurs and the copy and formatting occurs. Formula to get it to come out with the intended results?

View 5 Replies View Related

FOR, IF, NEXT... Error In VBA While Attempting A Simple Code

Jan 9, 2009

Had a bit of code I was working on for a guy on here, and came across a problem while putting the finishing touches on it. It's since been solved by someone else, but for future reference...

View 13 Replies View Related

Attempting To Create Inventory List....

Mar 4, 2008

(Excel 2007)

What I'm trying to create is a way to populate a quick inventory list with my bar-code scanner.

I've already learned that in order to have excel move to the next row each time a 12-digit SKU number is scanned, I'm going to have to utilize a userform text box.

My problem:

I don't even know how to begin coding the text box to accept a 12digit number, enter it into the next available blank cell (I'd like it to populate vertically) and then ready itself to accept the next available 12digit number.

My desired end-result:

My scanner is attached to a lengthy USB-Extension, so I can roam my store and quickly scan the inventory on display. For that reason, running back to my laptop and striking "Enter" each time makes the whole solution pretty useless.

Once finished, I'm assuming I could use excels count feature to tell me the quantity of the items I have on hand.

View 9 Replies View Related

Attempting Complex Lookup And Match

Sep 7, 2008

I am attempting to match data entered into two cells. The data input goes into Worksheet 1. In Column A Row 1 the user inputs data... Example: 5. Then in Column B Row 1 the user inputs separate data... Example: B. I would like the result returned to Column C Row 1. The lookup would be on a table in Worksheet 2.
Worksheet 2

A B C D E F G H I J K L M N O P
1 2 3 4 5 6 7 8
A Pig A Cat A Dog A Fish A Ox A Bat A Six A Pie
B Pie B Six B Bat B Ox B Fish B Dog B Cat B Pig
C Fish C Ox C Cat C Six C Dog C Pie C Pig C Bat

Therefore the Entry 5, then the entry B would Return: Fish
So it's a lookup and match Column A-P. Then using that match lookup Row 2-4 for the second match. Then Return the data from the cell next to it.

View 9 Replies View Related

Attempting To Speed Up The Time It Takes The Macro To Run?

Jan 8, 2013

I have recorded 7 different macros and then combined them all into one macro to achieve one end result. I am not sure if you can just look at the codes to determine different ways to improve them or if you need the excel spreadsheet as well.

View 2 Replies View Related

Attempting To Use Countifs / Sumproduct Where The Data Contains Dates

Jun 13, 2014

I"m attempting to generate a report to show the number of occurrences for a particular product within a calendar month.

Data is stored on the first sheet, output is populated on a separate sheet. Seems simple enough, but getting the "month" out of the date, whilst referring to another sheet seems to be the sticking point.

2014/03/24 14:34:17
Product1
2014/03/24 13:45:51
Product2

[Code]....

View 7 Replies View Related

Excel 2007 :: Paste Grayed Out When Attempting To Copy Or Cut

Oct 28, 2013

copy or cut then paste - paste grayed out in excel 07 tried several popular fixes from the web without luck.

Tried: the Excel repair and diagnose tool

Tried: uninstall / reinstall Excel program as well

Tried: go into Hikey - user - software - Microsoft - excel - new - 32 binary and tried adding new rule

Tried: Close Excel.2. Go to C:Documents and Settings[userID]Application DataMicrosoftExcel3. Delete the XLB file.4. Open Excel (the XLB file will be recreated - like the normal.dot) ------> This one - I could not find the XLB file - looked everywhere.

Tried: Open excel hit alt-f11 (to get to the VBE) hit ctrl-g (to see the immediate window) type this and hit enter: application .command bars ("cell").reset Then back to excel to test it."

View 3 Replies View Related

Vlookup Across Sheets, Nested Vlookup Possibly?

Jun 9, 2009

I’m trying to develop a workbook which holds monthly data on loan information. It tracks the interest and balance on the loan. I want the first page to have a table displaying the interest payments for every individual tab. When I was brainstorming the idea, I was considering a sort of Vlookup function to find the tab the account is on and then a further function, possibly another vlookup which connects the month to that month’s interest payment. Can anyone help me figure this out?

The attached spreadsheet is obviously simplified, there are well over 30 tabs. But I would like it to, ideally, search the account number column, search the workbook for that account number, and then when on that page use the month at the top of the first page and retrieve the interest payment and put it back in the cell. It’d also be great if the formula can be transferred between workbooks. I’m not sure if that makes sense; basically if I were to copy that worksheet into the next months book, I would like that the formula read those tabs instead of becoming obsolete due to references from the first workbook.

View 14 Replies View Related

Goal Seek In VBA With Variables

May 30, 2009

Trying to automate Goal Seek using variables for the three arguments. It's working when I define the cells references & values within the code, but cannot figure out how using variables. I'm sure the example below is incorrect, but will give an idea what I need to accomplish:

GoalCell = Worksheets("Parts").Cells(DestRowID + 10, DestColID)
Value = Worksheets("ICA").Cells(CopyRowID + 13, CopyColID).Value
ChangeCell= Worksheets("Parts").Cells(DestRowID + 9, DestColID)

GoalCell.GoalSeek Goal:=Value, ChangingCell:=ChangeCell

View 9 Replies View Related

Goal Seek Formula

Sep 28, 2006

CSS = P divided by S.
PS Required is a number that needs to be added to both S and P to achieve target of 83%

The answer to the below = 5. But i dont know how to get it using a formula
(If 5 is added to S and P both, S will become 36 and P will become 30; 30/36 = 83.33%)

Name S P CSS Target PS required
Adam 31 25 80.65% 83.00% ?

View 9 Replies View Related

Goal Seek Cell B1 To Zero By Changing C1

Aug 15, 2008

I need to goal seek cell B1 to zero by changing C1.

Then, I need to goal seek cell B2 to zero by changing C2.

Then, I need to goal seek cell B3 to zero by changing C3.

...................

...................

I need to goal seek cell B100 to zero by changing C100.

I don't want to have to perform 100 different goal seeks. Is there a way to do them all at once?

View 10 Replies View Related

Quarterly Goal Pacing Calculation

Dec 8, 2012

I am very new to excel and my formulas dont add up.

I need to calculate based on my quarterly goal and my quarter to date actual sales what my percentage pacing is.

Now the way i did it is =B5/A5

Do i need to add the Quarter date calculations in there because its not giving me the accurate percentage.

Goal Actual Pacing

View 3 Replies View Related

Using Goal Seek On Userform With Variables

Apr 6, 2013

Goal seek function

Code:
Worksheets("Sheet1").Range("Polynomial").GoalSeek _
Goal:=15, _ ChangingCell:=Worksheets("Sheet1").Range("X")

Is it possible to modify this such that I can use variables? For example, the variables are 'left term', 'right term' and 'sigma max' .

I want to set the value of the following equation 'left term - right term' to 0 by changing variable 'sigma max' Everything is done on the userform and not in the spreadsheet.

(Note: In spreadsheet format, the above query is equivalent to setting a cell which has a formula to 0 by changing the value in another cell, fairly simple).

View 3 Replies View Related

Seeking A Formula Instead Of Having To Use Goal Seek?

Jun 4, 2014

Say employee John Doe has a salary X. Giving him a salary raise Y (euro/dollar) induces a pension premium to be paid by the employer, on that amount.

The premium is (fixed) 17% of the part above a (fixed) treshold value of 3.750. On the part of the raise below the 3.750, the pension premium is (fixed) 4,35%.

E.g. having a salary of 3.600, with a raise of 400.
4,35% of (3.750 - 3.600 = 150) equals 6,525
And 17% of the remaining 250 equals 42,500
So the total premium is 49,025

But, I want to give a raise with a total cost of no more than 400. So, I use goal seek to find a raise that, together with te pension premiums equals 400.

In the example, with 3.600 as a salary to start with, that raise would be 358,10 Because the part below 3.750 stays the same and induces a premium of 4,35% of 150, being 6,525 and the remaining part is 208,10 at 17% is 35,377.

Proof: 358,10 + 6,525 + 35,377 = 400

The question is: is there a possibility to have a formula that calculates the (e.g.) 358,10 based on a salary to start with (e.g. 3.600), an aimed total cost (e.g. 400) and the fixed constants 3.750, 17% and 4,35%?

View 3 Replies View Related

Goal Seek With Complex Numbers

May 24, 2008

I'm trying to understand how complex numbers are handled/processed in Excel.
As related to my application, an interesting exercise would be to use Goal Seek w/s command to find the roots of the equation:
X^2 + 4 = 0
setting the (rounded) value in cell A2 to 0 by changing A1

A1:: 1+i
A2:: =COMPLEX(ROUND(IMREAL(IMSUM(IMPOWER(A1,2),4)),6),
ROUND(IMAGINARY(IMSUM(IMPOWER(A1,2),4)),6))
Obviously a conventional or direct use of Goal Seek wouldn't work since Excel treats complex numbers as text.

Perhaps, one should use Goal Seek twice in this case:
first: find the coefficient "a" for IMREAL(A2) = 0
second: find the coefficient "b" for IMAGINARY(A2) = 0
and the root would be "a+bi".

View 9 Replies View Related

Goal Seek VBA Syntax - With / Without Parentheses

Nov 25, 2008

I've been playing around with GoalSeek in VBA because of this thread and found something about the syntax that I don't understand.

If I want to find out whether GoalSeek worked, I can use

Ok = Range("B1").GoalSeek(Goal:=10, ChangingCell:=Range("A1"))
Debug.Print Ok
This requires parentheses around the GoalSeek arguments.

If I just want to do the GoalSeek, then I need

Range("B1").GoalSeek Goal:=10, ChangingCell:=Range("A1")
with no parentheses. Why? The Help says that GoalSeek returns True if it works, and the proforma syntax includes parentheses, but then the only example uses the syntax without parentheses.

View 9 Replies View Related

Multiple Cell Goal Seek

Jan 22, 2009

I need to use a Multiple Cell Goal Seek.

I used the code from this site.

Here is the ....

View 9 Replies View Related

Goal Seek Across Multiple Rows

Feb 12, 2010

Is there a way to "copy" Goal Seek acroos multiple rows?

I have used Goal Seek in the first row. However this spreadsheet is several
hundred lines long and using it like this is not practical.

I want to seek a goal value of 30% on the cell that I called “c”, and I want the result of the goal seek to be put in the cell situated on the same row, 6 columns before.

This is the code that I tried to write, registering and saving the “goal seek” operation for one row.

Is it clear enough?

What i wrote:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 12/02/2010 by Whirlpool Europe Srl
'
' Keyboard Shortcut: Ctrl+w
'
On Error Resume Next

For Each c In ActiveWorkbook
If cvalue < 0.3 Then

Range("c").GoalSeek Goal:=0.3, ChangingCell:=Range offset(c,0,-6)

Next c

End Sub

View 9 Replies View Related

Automatically Goal Seek Whenever Changes Are Made

Oct 18, 2003

I have created the following in an effort to automatically goal seek whenever changes are made to the cell C2.

Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Row = 3 And Target.Column = 2 Then
Range("D19").GoalSeek Goal:=Range("C2").Value, _
ChangingCell:=Range("D3")
End If
End Sub

As far as I know, the Macro is running all of the time? When I use goal seek manually it works fine. Assuming the above is running, when I change the value in C2 nothing happens. Does the fact that I have a three sheet workbook make any difference? I am sort of lost. By changing the value in C2 I want Excel to change the value in D19 to match C2 by adjusting D3.

Application.EnableEvents = False
Sub Worksheet_Change(ByVal Target As Excel.Range)
If Target.Row = 3 And Target.Column = 2 Then
Range("D19").GoalSeek Goal:=Range("C2").Value, _
ChangingCell:=Range("D3")
End If
End Sub
Application.EnableEvents = True

Doesn't seem to work either. However, I don't really know if other settings in the workbook are correct.

View 9 Replies View Related

Calculate Savings Required To Reach Goal

May 21, 2009

I want to save one million dollars in 10 years earning 8.00% interest. How do I calculate how much I need to save per month.

View 11 Replies View Related

Goal Seek Automation On Range Of Cells

Apr 1, 2013

I wanted to set up a macro to automate goal seek on a range of cells. I've attached a short extract below of the spreadsheet I'm working on (the full one has a few thousand lines of data) which I hope illustrates what I'm trying to do.

jan
feb
mar
apr
may
jun
jul
aug
Avg
New Avg

0
0
0
0
0
0
0
0
0
0

34
20
43
43
43
43
43
43
35
39

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

View 3 Replies View Related

Formula: Calculating Averages To Reach A Goal

Aug 27, 2007

Below is my data point for each month. The goal I need to hit is 99%. So I need to figure out what minimum monthly percentage I need for the rest of the year, I will need to reach a goal of 99%, and if I can't reach it, return an error. Lastly, i want to be able next month to go in and fill in the AUG percentage with an absolute number (i.e. 89%) and then I would like the rest of the percentages to automatically update by figuring out the new minimum monthly average given the new value for August. I thought that I might be able to do that if there is a function that says "If cell is a number, leave it alone, if it's a formula, then include that cell in the calculation of the minimum monthly average.

Jan 89%
Feb 88%
Mar 83%
Apr 89%
May 90%
Jun 86%
Jul 82%
Aug
Sep
Oct
Nov
Dec

Goal 99%

View 9 Replies View Related







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