Adjusting A Formula
Apr 18, 2008
I am trying to figure out a formula for the boss, but I just cannot wrap my mind around what I need to do. I’m sending out an S.O.S.! If you can figure this out, please respond.
=MIN(b4*12-25%,b4*12-500) + MIN(c4*12-25%,c4*12-500) fills in the cell with the correct answer, but not quite the answer that I need. Let me illustrate:
The first part of the formula is to take b4 times 12 minus 25% --if this amount is less than or equal to 500 then use the amount. If it is more than 500 then use 500.
(b4*12-25%)
234.25 * 12 = 2811 – 25% = 2811
2811 - 25% = 702.75 500 Since this amount is more than 500, 500 should be used instead. ~~this is actually the amount that I want to show in the cell, the amount saved~~
2811 - 500 = 2311 ~~this is the answer that is showing up in the cell, which is not quite what I need. ~~
I want to find the answer to this question: b4 times 12 equals ?, subtract 25% or 500 from that, insert this answer into cell.
One of my biggest problems with this is that I can’t even figure out how to say what it is that I need. The formula is doing exactly what I'm telling it to do and I can't even figure out what it is that isn't working. This formula is confusing my brain…!
View 9 Replies
ADVERTISEMENT
Jun 11, 2007
How would you adjust the network days formula so that Wednesday is considered a non-working day?
View 9 Replies
View Related
Feb 4, 2014
I have the following formula....
=IF(B6<1,"",IF(I6<1,"PENDING",IF(J6>0,J6-I6,"PENDING")))
Where B6 = Job Number
Where I6 = Date Received
Where J6 = Date Completed
This calculates calendar days but now I need it to calculate only business days.
Not sure where within this equation I should insert the NETWORKDAYS function
View 4 Replies
View Related
Apr 6, 2009
This should be simple but I can't get it...any help appreciated. See sample attached
View 6 Replies
View Related
Dec 12, 2011
I have a data set that is coming from an Access cross-tab query, with attribute values in the first four columns and two years of sales $ in the subsequent 24 columns, much like:
Product | Category | Region | District | Jan10$ | Feb10$ | Mar10$....etc
I am summarizing the data using multiple criteria, so I've been using SUMPRODUCT formulas that utilize dynamic named ranges. All the summaries have required summing the data by individual months only, so I created only one named range for the sales data and use OFFSET to determine which column to pull it from in the SUMPRODUCT formula, such as
=SUMPRODUCT( --( rngRegion = $A$1), --(rngProduct = $A$2), OFFSET( rngSalesData, 0, $A$3))
...where A3 represent the number of the month that I'm summarizing (i.e. October = 10, etc). This method worked great, but now I'm being asked to summarize data YEAR-TO-DATE. I thought this wouldn't be difficult, as I'd just use the width part of the OFFSET function to expand the range I want to sum. But its not working. I attempted this variation, where I'm trying to sum Jan10 - Oct10.
=SUMPRODUCT( --( rngRegion = $A$1), --(rngProduct = $A$2), OFFSET( rngSalesData, , , ,$A$3)
...but it just gives me the dreaded #VALUE! error. I stripped down the formula to try to find the problem until it was just
=SUMPRODUCT( OFFSET( rngSalesData, , , ,$A$3)
And that gives me the sum I expect for the 10 months of data. The problem seems to be when I add in the additional critiera like --(rngRegion = $A$1), then the #VALUE! error pops up. So I'm guessing the issue is with the sizes of the named ranges in the formula being different even though they aren't, and they work just fine when I'm not trying to leverage the width portion of the OFFSET function. Should I try using a different technique to sum these multiple columns together?
View 5 Replies
View Related
Jun 28, 2014
How to express what I am trying to do in a sentence but basically I have this formula
[Code] ..........
I need B# to change automatally like it does when you copy the formula but i need the N1 and N2 to stay N1 and N2, how do i do this?
View 3 Replies
View Related
Dec 10, 2012
How Auto Resize (height) cell to fit text? (macros, formulas, setting)? One can make the height of the cell is reset according to the amount of text?
ej..jpg
View 4 Replies
View Related
Jan 30, 2014
I'm writing a code to adjust the height of the row based on the wraped lines. I want it to be "16.5 * (number of lines)".
First I counted the number of lines in each cell. I wrote at D1 the formula to calculate the lines at A1:
=LEN(A1)-LEN(SUBSTITUTE(A1;CHAR(10);""))+1
Then I wrote this vba code to adjust the height:
Sub AdjustHeight()
Dim x As Double
x = 1
For Each Cell In Range("A1: A11")
Cell.RowHeight = 16.5 * CELL(D"x")
x = x + 1
Next Cell
End Sub
How do I do that multiplication? How can I tell it to multiply 16,5 with the value of the cell D"x"? Is this the best way?
View 2 Replies
View Related
Dec 8, 2009
I am trying to make some additions to this code. Basically what it does is copy some data from another sheet. Now there are two types of copying here.
1. A ‘call value’ from another sheet is copied to this sheet.
2. The formula from the previous cell in the column is copied. (eg. Formula in C3 is copied to C4, formula in D3 is copied to D4, and so on)
So the macro works fine for all cases EXCEPT the initial entry, which will be in Row3, that’s where the formulae begin. So I need some kind of an If-Then statement.. to say if A3 is empty then do the following, If not then do something else....
View 12 Replies
View Related
Oct 22, 2008
I have a table upon which I wish to perform vlookups, however I need to be able to adjust the range that the vlookup searches to include any data that may be added in the future without having to go into the sheets and change the vlookup.
Example
Name DOB
Tom 01/01/81
Dick 02/02/82
Harry 03/03/83
if someone then adds
Fred 04/04/84
I would like the vlookup to automatically accommodate the extra entry without needing any changes.
I've seen this done on data validation with the following formula:
=OFFSET($a$1,0,0,MATCH(REPT("z",255),$A:$A))
It only needs to do new rows, not columns.
View 9 Replies
View Related
Jun 29, 2006
I am using the =today() function to places todays date in a cell...how can I get the next to cells to automatically display dates that are 2 months and 4 months later without having to change them manually every day. FWIW, this is for an certification expiration chart.
View 4 Replies
View Related
Oct 21, 2009
I'm working on a spreadsheet to rank stores based on how they perform in certain metrics. These metrics are weighted, and occasionally a metric for a store will get waived. I'm having trouble figuring out how to handle this without making a custom formula for each occurrence.
View 7 Replies
View Related
Jan 28, 2010
I have the a file that is downloaded from AS400. The time column is presented in 24 hours format in column D. For example : 92114 means 9.21 am. I need a formula to adjust the date in column B based on the following criteria:
1) If the time is after 2.00 pm, adjust to the next working day taking into account public holidays in column H
2) If the time is before 2.00 pm, remain the same day
3) if the time is after 2.00 pm and it is Friday, adjust to the next working day taking into account public holidays in column H
The correctly adjusted date is in column E.
View 2 Replies
View Related
Sep 17, 2010
I am trying to figure out if something here is even possible. I have an order form and a price list. I get different pricing based on the quantity I purchase. I would like to have the price auto populate based on the quantity entered. The price will be on another sheet.
I couldn't find a lot of info but I also may not know where to look.
example:
if (b2<62) then price is ($sheet2.b2)
if (b2<124) then price is ($sheet2.c2)
if (b2<372) then price is ($sheet2.d2)
Is this even possible to put into a formula?
View 6 Replies
View Related
Oct 3, 2008
below is some code from a spreadsheet I am working on,,,,,, as you can see it adds items to a dropdown list in a combo box. This may require an update at another time,,,,, is it possible for the list to be updated from a list in the spreadsheet, therfore preventing people from accessing the code
View 4 Replies
View Related
Jan 30, 2013
I currently have a tab that is contains a macro driven query pulling data from an access database. However, I have selected the option to add new rows for new data which in turn causes my sumtotal at the bottom of the sheet to be over ridden by this new data. My question is, could there be a way to have the total row move down as new rows are added from the query (formatting and all)?
View 1 Replies
View Related
Oct 11, 2013
I've got a Table with 3 columns. (Goods, Amounts, Type). Every column has similar filter. Can I from the second and third filter remove the single item selection (red square below).
View 2 Replies
View Related
Mar 26, 2014
I saw the below code in another thread that does almost what I need it to do. The only thing is that I need to only select certain worksheets, not all. Is there an adjustment I can make to this code or is there something I can do differently?
Each worksheet has a table on it as well, is there a code I could use to just combine certain tables?
Sub debit1()
'Combine all worksheets to the Summary sheet
'Created by Trevor G 30 June 2011
Dim ws As Worksheet
[Code]......
View 7 Replies
View Related
Dec 14, 2007
I am created a very simple account plan for colleagues in my team which is proving to be very poular with the exception of one thing.
I created the plan which is around 30 sheets on my laptops highest resolution setting. 1400 x 1050. Only one other colleague has this res available so of course when the rest of the team open it, it looks huge.
I need help with this as I'm still very new to excel, although learning very fast!
My preference for finding a fix for this would be to insert a scroll bar on each sheet that, when scrolled, changes the zoom of the page between a range of 50% and 100%. This may not be the best way of doing it but I'm trying to make the sheets as simple to use as possible as some of my colleagues are only just compuetr literate, let alone excel competent!
View 9 Replies
View Related
May 27, 2006
i do not know or can seem to find out is how i can program the team list in the table to adjust each team position auto-maticly relevant to each teams points scored
IE 1st 2nd 3rd 4th etc in a vertical league list
View 9 Replies
View Related
Jul 5, 2006
I have a macro on a workbook that when I hit the button it asks for the date of a register sales journal that I want to import. Then it asks for the cash in drawer amount. Then it puts in all of the data into the sales spreadsheet. Now I want to use the on time method to bypass the button and the entry of the date, and even get rid of the cash in drawer. I want to make the macro run at 9:30 every night. I want it to use the date on the computer to tell it which date to find? Here is the code I'm using! button macro
' Button2_Click Macro
Sub Button2_Click()
ImportData
End Sub
Here is the main macro
Function FileExists(sFile As String) As Boolean
Dim iLen As Integer
On Error Goto NO_FILE
FileExists = True
iLen = FileLen(sFile) ................
View 9 Replies
View Related
Sep 12, 2007
This is for a call centre and sales office. there are 3 tabs. Tab 1 represents the values that we update at the end of each week which then gives a running total over an 8 week period and then an average below. there is a seperate table for each staff member. Tab two is for one team of people and tab two is for the other team. Namely LG team and Sales Team. the tab 2 and 3 are to show league tables that both collect data from tab 1, but then create a league table showing who is top dog over the 8 week period. But this also has to self adjust to be in order.
on tab 2 and 3, the tables on the left will be hidden once complete, but are there to work out the league. the table on the right is then there to put and show the league in the right order. I HOPE THAT MAKES SENSE, COS EVEN I'M LOST NOW. I've followed previous advice on this and inputted what I think are the right formulas, but for some reason it's coming up with the wrong answers and several names are being repeated which are wrong. For example even when ben perhaps is number 2, it will show rahim as number 2 and number 3. why is this?
also, how do I get by the problem of on the odd occassion when perhaps ben and rahim have the same stats and are joint second, but it will only show ben as 2 and ben as 2 again, leaving rahim out of it. WOW. I'm glad I've got that out of my system. I was doing the washing up yesterday donig Excel formulas in my head. But the washing up got done at least.
View 3 Replies
View Related
Jan 26, 2014
Is there some possible way to control-C type copy a range from a sheet, then paste it duplicating everything from the original cheet; i.e., exact same cell references as are in the cell formulas?
I am suspicious it is right in front of me and I can;t see it, but I have run through all the special pastes that I could from the left-click paste sub-menus and I can not find it!
View 7 Replies
View Related
Feb 2, 2009
I've compiled data into a spreadsheet which indicates the number of homes sold over the course of 3 years (from 1/1/05 to now) along with their price per square foot, sale price, year built, bed/bath count, and other pertinent factors regarding each property.
I've extrapolated graphs from these in the past which indicated the trends in each category over time (i.e.: Average quarterly price per square foot over time, and so forth).
The data range I'm working with now, however, is from an area of my region so small, that the number of units sold over the past few years is sporadic. Whereas it's normally 100 to 1000 units that comprise my data, now it's only 15 units.
This has created gaps in my line graphs where the price per square foot will dramatically drop down to zero over the periods in time where no sale was recorded. So the line graph ends up looking like a zig-zaggy range of peaks reflecting the price per square foot of a sale, and valleys representing "$0.00" for periods of time where nothing has sold.
To have a Price per square foot of $0.00 is incorrect since in reality nothing was sold.
I would like to be able to eliminate the portions of the graph that have the "$0.00" so that the line graph can "jump" from one sale to the next when the quarterly data indicates 0 units sold.
I'd like to do this without having to eliminate those areas in my spreadsheets. Is there any "catch-all" tool that might do this or is that just crazy talk?
View 2 Replies
View Related
Jan 8, 2009
Good afternoon Gentlemen, I have a column of data, with a varying number of percentage values that add up to 100%, separated by "NA", i.e.
33%
33%
33%
NA
25%
25%
25%
25%
NA
100%
NA
20%
20%
20%
20%
20%
NA
Now... when I change one of the values I would like the others to even up, i.e. in the last example if I change a 20% to 50% I would like the others to change to 10%... any ideas?
View 11 Replies
View Related
Apr 5, 2009
Here's a nice easy one for anybody whose used excel for more thaan a week unlike me, I'm using the following code to access a popup calendar:
View 2 Replies
View Related
Oct 17, 2012
I have a worksheet that is automatically updated based on actions in other sheets. There are 10 columns of data (A-J) Headings are on row 6 and data starts on row 8. I have created 3 buttons to sort worksheet by client column (B), year-end column (E) and to bring it to original order (by numbers in column A). I have created the following codes that I have assigned to each button however it does not work.
Sub Macroclient()
Columns("A:J").Sort Key1:=Range("B8"), Order1:=xlAscending, Header:=xlGuess, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
End Sub
[Code]....
View 1 Replies
View Related
Nov 13, 2009
I have a spreadsheet with many tabs in it (over 100 I believe) and I just want a macro that will adjust the page breaks so it will print one page per tab. Somewhere along the way, the page breaks have auto-adjusted themselves to print 4 or more pages on one tab. I do not want that.
In trying to figure this out on my own, I recorded a macro on one of the tabs and it returned the following
Sub Macro1()
ActiveWindow.View = xlPageBreakPreview
ActiveSheet.VPageBreaks(1).DragOff Direction:=xlToRight, RegionIndex:=1
ActiveWindow.View = xlNormalView
End Sub
How can I add to or adjust this to make it adjust the pagebreaks in all available tabs?
View 9 Replies
View Related
Jul 21, 2014
I currently have this formula to deal with this:
=SUM(J5:INDEX(J:J,ROW()-1))
However, whenever I delete the top row...I get a reference error and have to re-adjust...
View 7 Replies
View Related
Mar 27, 2014
HTML Code:Â
Time,s act1act2
21.12.1
31.22.2
41.22.3
51.32.4
61.42.5
71.42.6
81.52.7
91.62.8
101.910
112020
124030
136020
144010
152010.1
16310.2
17310.3
I have this data...I need a macro which can find difference of timing between peaks of "act1" and "act2" and can adjust the act2 column such that their peaks are on same line.. For exampe here in data peaks of "act1" is at 13seconds and of "act2" is at 12seconds..so the difference is +1...I will insert 1 one cell in "Act2" from above which will shift down the column such that 60 in act1 and 30 in act2 will be in line...or for another example if 30 is below 60 ....>..if difference is -1 seconds or in minus it can delete the same number of cells from above in act2 coloumn(deletion of cells from the beginning which are under the title act2)..
View 1 Replies
View Related