Different Ways To Get Change In $$
Apr 23, 2013
Michelle went to the store with a $5 bill. She spent $2.70. The currency denominations are restricted to the following: Notes $2 and $1, and coins 50 cents, 20 cents and 10 cents.
(a) List the possible ways she could get her change. How many ways are there?
(b) List the ways that use the least number of coins.
(c) List the ways that use the least number of both notes and coins
View 2 Replies
ADVERTISEMENT
Jan 8, 2010
I've been noticing that most of my questions on here are Macro related. Does anyone know of any good websites, videos, tutorials, or any other good sources to find ways to learn macros?
View 2 Replies
View Related
Oct 15, 2008
I want to do is add up a column of numbers (which will be just 1's & 0's), and have it multiplied by a number. As to what that number would be is contingent upon the number that's being multiplied (if that made any sense). i.e.
If it's 45 or under, I want it multiplied by 5.
If it's 46 through 64, I want it multiplied by 10.
If it's 65 or above, I want it multiplied by 20.
How would I do this? I, for the life of me, can't recall how to write that formula.
View 2 Replies
View Related
Mar 18, 2009
how to go about finding sequences and highlighting them.
here's an example list:
7600
7601
7602
7603
7604
7608
7609
7610
7611
now i need to find 3 things in this list.
1) how many 'batches' of sequences there are in this list. The numbers 7600 to 7604 are a consecutive sequence of five numbers followed by another sequence from 7608 to 7611. that makes two sequences. i need a formula for one cell that would specify how many sequences there are in a given list (in this case they're two sequences in this list).
2) is there any formula that can allow me to see each sequence highlighted in a different color (or any way to differentiate the sequences so i can copy paste them easily?). Pretty sure i'd have to use conditional formating on the entire list to do so but am clueless as to the implementation.
3) a formula for a single cell that can state the largest sequence in the list. in the list above the largest seuqnce is 5 numbers so that would be the value i'm looking for.
View 9 Replies
View Related
Jan 5, 2009
Easy scroll to down ways, should I copy rows to a column? See the attachment for a more clearance.
View 4 Replies
View Related
Feb 19, 2014
I have a situation that I cannot get my hands on. I have a set of Project Numbers in my Column A. (Will Try to post an example).
I need that everytime I change a number in my Column B that it will change all the numbers, in my column B, based on the matching Text in my Column A.
Demo1.xlsm
View 14 Replies
View Related
Jan 10, 2014
i have some existing code which is trigerred when anything is input into column c. The code then adds various information in another three columns. One of which pastes a vlookup formulae, and i would like this forumlae pasted into the column c cell which i initialy edited, in order to remove the requirement for one additional column.
The existing code i have is:
Code:
Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim MyText As String
MyText = Environ("username")
If Target.Cells.Column = 3 Then
With Target
If .Value "" Then
.Offset(0, 2).Formula = "=VLOOKUP(D:D,'P:TAOffshoreTAOffshoreTreasuryRecsGeneralCommit ID''s for control Sheet - Do not move or delete[commit ids - DO NOT DELETE OR MOVE.xls]Sheet1'!$A$1:$B$65536,2,0)"
[code].....
I have tried changing the offset to (0,0) or changing the offset to 'target = ', which does add in the vlookup but then the macro debugs at the 'If .Value "" Then' code?
View 3 Replies
View Related
Jun 17, 2009
an event macro to change the font colour of a cell whose value changes as a result of a calculation.
View 9 Replies
View Related
Jul 11, 2014
I want to change value if i change products from drop down list.....
For more information please find attached file: Book.xlsx‎
View 8 Replies
View Related
Jan 29, 2010
I want to drag a formula however i want one of the values of the formula to change and the other not to change. for example:
c1=a1+b1
c2=a1+b2
c3= a1+b3
: : :
how can i make it do this when i drag? a1 is not just a constant and it depends on other parameters.
View 3 Replies
View Related
Jul 21, 2009
Attached is book in which, when a choice is selected from Drop Down list in ColumnF the macro has to do the need.
When the macro was written it was working well. But when I tried to change it as a Worksheet_SelectionChange event nothing is happenning even though a choice is selected from drop down list.
View 4 Replies
View Related
Dec 6, 2011
Basically the situation I have is Sheet2 has many references to cells in Sheet1. Sheet2 is for all intents and purposes a kind of nicely formatted report form, and Sheet1 is the input form.
My ultimate goal is to automatically resize row heights on Sheet2 when cell contents change on Sheet2.
Using a worksheet_change event isn't working I presume because it doesn't see the formula output change as a worksheet change, the worksheet_change is firing only when the input is changed in Sheet1.
how can I capture these formula output changes on Sheet2 (triggered from input on Sheet1) OR is there a way of making a particular sheets rows always adjust in height to best fit?
View 5 Replies
View Related
Aug 13, 2012
I'm coding a userform where there are some comboxes which are popolated by values coming from Sheet2. Up to now I work it out (maybe its not elegant but it works).
Now I would like that when the user selects one combobox the values of the other comboboxes are set accordingly to the grid in Sheet2.
Please download the XLS file at: [URL]....
View 2 Replies
View Related
Jul 21, 2009
Im trying to use an event change to change the sheet name based on a cell value, but my issue is how can I error trap if the sheet name is a duplicate? Here is what I have so far
Sub ChangeName()
On Error GoTo errhandler
Sheets(1).Name = Sheets(1).range("d10")
Exit Sub
errhandler:
MsgBox "sheet name is already exists"
End Sub
View 9 Replies
View Related
Mar 5, 2010
I have used the below code to insert a new row when the value in coulmn A change. I now need to evolve it so that the new row will contain a specific value depending on the changing value:
Before:
Column A Column B
one test
one test
two test
two test
three test
three test
After:
Column A Column B
one test
one test
Coz two............................
View 9 Replies
View Related
Jun 23, 2006
How would I add this formula as a worksheet function with VBA. I can't see INT, MOD or Year in VBA. Also want to change C2 to change to activecell column + row 2.
=INT(((C2-1461)- SUM(MOD( DATE(YEAR(C2-MOD(C2,7)+3),1,2)-1461,{1E+99,7})*{1,-1})+5)/7)
View 4 Replies
View Related
Jun 3, 2008
I have a drop down sub pasted to worksheet:
Private Sub ComboBox1_Change()
ComboBox1.List = Array(100, 200, 300, 400)
If Range("I11").Value < Range("N11").Value Then
If Sheets("Profile").Range("K18").Value < ComboBox1.Value Then
Range("I11").Interior.ColorIndex = 2
Else
Range("I11").Interior.ColorIndex = 3
End If
End If
End Sub
I want it to change the cell color on drop down change. How can I modify things to have the change in drop down selection?
View 9 Replies
View Related
Sep 27, 2007
I have a simple bit of code that fires some code when it detects a change in cell $P$5 but it doesnt work and I cannot understand why - can anyone assist with this one? I am very green but keen:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "$p$5" Then
Range("D9:D81"). AutoFilter Field:=1, Criteria1:="<>"
End If
End Sub
View 2 Replies
View Related
Jan 27, 2007
I want to edit a cell's value without changing the formula the cell contains.
View 10 Replies
View Related
Mar 27, 2012
I have recorded the code below that does what I need, problem is I will use the code on files with various amounts of rows. What can I change in it so it will work on all different size files.
Code:
Sub Macro3()
'
' Macro3 Macro
[Code]....
View 6 Replies
View Related
Oct 23, 2008
Is there a way to either change this so that it lets me to select the whole area or a way to make a macro to do what this does to one cell?
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Not Intersect(Target, Range("M13:IR458")) Is Nothing Then
Select Case Target.Value
Case "1"
Target.Font.ColorIndex = 20
Target.Interior.ColorIndex = 10
Case "Good"
Target.Font.ColorIndex = 2
Target.Interior.ColorIndex = 35
Case "Stable"
Target.Font.ColorIndex = 2
Target.Interior.ColorIndex = 27......................
View 9 Replies
View Related
May 9, 2006
=CHOOSE(WEEKDAY("1 Jan " &$C$1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
where C1 = the year 2006. B1 has the month Jan and I want to input that into my formula, so when I change the month, it automatically will change my formula. I tried =CHOOSE(WEEKDAY("1 $B$1 " &$C$1),"Sun","Mon","Tue","Wed","Thu","Fri","Sat")
B1 = Jan
C1 = 2006
View 7 Replies
View Related
Dec 13, 2012
I am aware that I can use single changing events in worksheet change events. For instance, if column 1, or A is changed, do something. This is only a single If statement, i.e. either the condition is true, or not. What I am not sure is if I can use two changing events, i.e. two conditions. For e.g. I would like if Column A value is X and Column B is "Active", action it, but only if two conditions are true.
For.e,g. The below syntax does not work. If it is only column A, it does work, but I want both A and B to be true, then copy and paste the target does not anything.
VB:
If Target.Column = 1 Then
If Target.Column = 2 Then
If Not Intersect(Target, Range("A2:A" & Rows.Count)) Is Nothing Then
If Not Intersect(Target, Range("B2:B" & Rows.Count)) Is Nothing Then
If Target.Value = "X" And Target.Value = "Active" Then
View 4 Replies
View Related
Mar 25, 2013
I have below formula.i need to change the cell address AK in the below formula on the value change in the A3.
=SUMIF(Working!$D$6:$D$3000,Report!B3,Working!$AK$6:$AK$3000)
For example if A3 is having value AZ i need the formula changed automatically as below
=SUMIF(Working!$D$6:$D$3000,Report!B3,Working!$AZ$6:$AZ$3000)
View 4 Replies
View Related
Nov 28, 2009
How can I get a cell to show one value when it is selected and return to it's original value when it's no longer the active cell. The cell has a number in it, when it's selected, I use the "selectionChange" event to replace the active cell's value with a number on sheet 2. (The original value is copied to a new location before it is replaced). When the cell is no longer the active cell, I want the original value to be pasted back into the cell. How can I do that? This is what I have so far:
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
x = ActiveCell.Row
y = ActiveCell.Column
ActiveCell = Sheets("Sheet").Cells(x,y).offset(20,3)
End Sub
View 9 Replies
View Related
Apr 6, 2013
when I select a data validation value in cell A3 of sheet 1 will change the data validation value in A5 of sheet 2, and verse vice.
Also in the same attached file, I want to solve another formar issue. The needs is expained in the file.
View 8 Replies
View Related
May 13, 2008
If there is a + sign in cell F7 how would I reflect the number in cell G7 to reflect a positive #, and if cell F7 changes to a - sign how would I have cell G7 automatically reflect a negative #?
View 14 Replies
View Related
Jan 24, 2008
I need to add a condition to this formula that will change a #ref returned value to a 0 value if no data exists in Raw Data sheet.
=IF(AND('Raw Data'!L2=Variables!$A$3),'Raw Data'!P2,0)
View 9 Replies
View Related
Mar 6, 2009
Is there a way to change 126½ which is text to 126.5 as a number?
View 9 Replies
View Related
Dec 6, 2006
I have an excel spreadsheet that i need to add rows to. The spreadsheet has many columns and in one of the columns is a date. The spreadsheet is sorted by date. I need to add in a blank row every time there is a change in the date.
For example:
The first 100 rows all have the date of 11/26/2006 then next 87 rows have a date of 12/4/2006 and so on. I would like it to automatically notice a change in the date and add a blank row between the different dates.
View 6 Replies
View Related