How To Record Actual Mileage When There Are Blank Cells Between Recordings

Apr 5, 2009

The spreadsheet i am working on requires mileage between last trip and previous trip.

Unfortunately there will be blank cells between as shown below ...

View 9 Replies


ADVERTISEMENT

IF Formula- Mileage Cells To Automatically Equal The Mileage

Feb 13, 2009

This is for mileage purposes. I have two sheets. 1st sheet I have Date, From, To, Mileage. I want the Mileage cells to automatically equal the mileage it is from and to. Right now I have it setup like this on the 1st sheet B7 is Date, C7 is From and D7 is To and E7 is Mileage. I have a drop down menu for C7 and D7 for our facilities such as Ming Ave (MNG), Coffee Rd(COF) and so on. On the 2nd Sheet I have the chart that show the miles.
example MNG to COF is 8.3 miles.

View 9 Replies View Related

Mileage Log To Record Specific Distances?

Nov 2, 2013

I'm creating a mileage log for my work as a traveling art teacher. Most templates have you just input the number on the odometer when you started and when you finished. Since I can never remember to check the odometer when I am getting in and out of the car I thought it might be easier to just record the distance from each location once and then record that number of miles each trip. I usually travel the same route so the mileage is always the same.

I have an array of numbers right now, with 3 columns listing my 3 most common start locations. Then I have 5 rows listing the 5 schools I travel to for work, and the distances from each start to each end in the array. On a separate sheet I have my log.

What I would like to be able to do is select a start location and an end location from a drop down list on the log and have the number of miles automatically appear in the miles column. Then I can double this for the return trip and total it at the bottom and calculate my expense.

I am having trouble writing a formula that works for all 15 possible distances, and I don't quite know how to write it so that it references my array and finds the correct distance for those two specific choices. So far I have the drop down menu's pulling from the array but I'm stuck at how to index the array using the information that is coming from the drop down list.

Since I travel to these locations multiple times I think it would be a lot faster than looking up the distance every time and typing it up manually.

View 7 Replies View Related

Track & Record Dates, Past And Actual

Mar 8, 2008

I am creating a tracker to record, incoming, latest date of reply needed and actual date of reply. So I have column A= received, Column B = need to reply by, Column C = replied on. What I want in A is today’s date which is easy enough with ctrl+; is there a way of having it set that as soon as the cell is clicked on that date is activated and until then it remains empty?

What I have in B is A# + 20 this adds 20 days to the date entered in column A, again is there any way to have it set that this automatically activates when cells in column A are active and not until then, as if I enter that code in the cell and nothing is showing in cell A it gives a date of the 20/01/2008.

In C I have tried a couple of codes and they have not worked so what I would like is a code that when A and B are active it generates a countdown for days left to reply and if this countdown reaches zero then the whole line is flagged up in red as late. Lastly, is there a code that I can use that will automatically correspond with the A, B or C columns and match them with the same number cell in the other columns, sorry this isn’t so easy to explain but what I have to do at the moment is type in B is =A1+20 , A2+20, A3+20 and so on rather than just typing in A……+20 for column B to know it needs to associate itself with the same number cell in column A regardless what number it is.

View 2 Replies View Related

Auto Copy Template On Record Entry & Link Set Cells Back New Record Entry Sheet

May 26, 2009

I am looking to create a macro that will create a new sheet when data is added on a summary sheet. Example.

1. Summary sheet called "Variations" contains columns that will contain the information needed for new sheet (Columns A to D)

2. When data is entered on "Variations" sheet: Column B, then macro automatically creates new sheet renamed to e.g. VO1 (Number used on "Variations" tab) and is a copy of "Master" tab.

3. Data entered in Column A to D on "Variations" tab is automatically entered onto new sheet created (e.g VO1). Shown is blue on attached file. Additional data is updated on "VO1" sheet and this then links back to "Variations" tab

View 6 Replies View Related

Inserts A Blank Record In The Third Row Of The Sales History Worksheet

Oct 21, 2007

#17. Create a macro named "AddSale" that perform the following tasks:
-Switches to the Sales History worksheet, and then inserts a blank record in the third row of the Sales History worksheet, shift the rest of the records down.

i did create the Addsale to the macro i use Tools-Macro-record a new macro (is that right?) and i switch to the sales history worksheet insert a blank row. (am i right?) it state inserts a black record, i can't find record anywhere so i assume its blank row.

View 5 Replies View Related

Get Actual Number From 2 Cells?

Mar 25, 2014

I need to find a number (1, 2 or 3) and I am looking in two different cells for it. Now, Cell 1 might have the information; Cell 2 might have the information or BOTH Cells A AND B might have the information, or either cell (or both) might have different information. I can't do an IF/OR because I don't know which cell will have it, nor can I do an IF/AND for the same reason. I can't assume that they will both have the information -- so I can't just use a solution that includes a "divided by."

for example:

A
1 2
2 0

or maybe

A
1 3
2 3

or

A
1 4
2 1

If A1 or A2 is > 0, but <4, then that number

View 7 Replies View Related

Sum The Cells Displayed Value Not The Actual Value

Jul 10, 2006

On my worksheet, cell A1 and A2 both contain the value:
0.1655555

I've changed the number formatting to three decimal places so it appears on the sheet as 0.166.

In cell A3 I have a forumla =A1+A2 which currently comes back with the value 0.331 (0.1655555+0.1655555=0.331).

Instead of adding together 0.1655555 I want it to add the displayed value of 0.166 so it should then come back with the value 0.332.

View 3 Replies View Related

Find Actual Day In Range Of Cells

Feb 19, 2009

i have this file with macro. But it doesnt works how i want. I need all data exctly in forms as are. So it can not will be changed. I hope it will be works, if i define my macro other.

I find actual day in column C where are dates. But now it find only if is there value like now(). In this file it found cell D24, but i need, that it will find cell C24. I need search only actual day in column C.

View 5 Replies View Related

Now() As Record Id; What Record ID Schemes Are Fequently Employed Besides Date/time

May 25, 2007

I seek advice on using the value of NOW() as a record ID in an address book program. Question #1: Do Excel developers often use a record ID? Question #2: What record ID schemes are fequently employed besides date/time? I have decided to create an Excel address book as an exercise to increase my knowledge of VBA, and also as a useful application for work.

I realize that a record ID is not essential in Excel in the way that it is essential in Access, but I feel the need to have some unique ID associated with each address, so that I may have different worksheets, with data related to a given Contact, sort and manipulate it, if necessary, but have the record ID as a way to restore the relationship of rows to a given Contact, and also, as a handy way to examine the data in the date/time sequence in which it was entered. I have experimented with the following code, to assure myself that I can access the number returned by the NOW() function, manipulate it as a string, and format in various ways if necessary.

Dim n As Double
n = Now()
sn = Str(n)
p = InStr(sn, ".")
first = Left(sn, (p - 1))
l = Len(sn)
d = l - p
S = Mid(sn, (p + 1), d)....................

View 2 Replies View Related

How To Calculate Mileage

Jun 23, 2014

trying to figure out a formula that would save me heaps of time trying to calculate mileage on expense reports each month, and I cannot for the life of me get the formula down. Following are the specifics:

Mileage is reimbursed at a rate of $0.17/mi for the first 198 miles in the week. Any mileage after 198 is calculated at a rate of $0.56/mi. The mileage log I have is a monthly log, and expenses are turned in on a monthly basis.

Is there a way to create a formula that will calculate on a weekly basis, at the correct rate based on the number of miles in that week thus far?

View 2 Replies View Related

Mileage Matrix

Mar 4, 2010

I am trying to figure out a better way to do my mileage for when I drive for work.

Currently I need to look at a sheet and see where I started and where I stopped and then I’ll see the distance.

Kinda look something like this.

Home
Work
School
Home
031Work
304School
140

What I would like to do is type in the “to” and “from” cell and have it automatically know the miles based on the chart above.
DateToFromDirectionTimeMiles3/4/10Home
Work

View 9 Replies View Related

Mileage Tariffs For A Taxi

Jul 17, 2009

I am trying to create a formula which will display tarriffs for a taxi depending on how far it has travelled -

Distance Tarriff
0-0.5 miles$1.00
0.6-2 miles$0.80
3-5 miles $0.75
6-20 miles$0.70

I want to enter the exact mileage travelled into a cell e.g. 8 miles, then I would like the exact cost to be shown in the cell below. In this case the cell will display $0.70 for 8 miles.

View 14 Replies View Related

Mileage Calculation Form

Jul 25, 2008

I'm working on creating a form where truck drivers can calculate their mileage to and from job sites. What I have now is two lists, one is a "to" list, where it lists the Job Sites, and one is a "from" list, where it lists the destinations (usually to Rock Quarries). These two lists are being referenced in the user form as combo boxes. An additional list holds the distances for each to and from possibility.

What I would like to do is when the user selects a to and from location from the combo boxes in the form, the form references the mileage distance from the list of to-from possibilities.

View 14 Replies View Related

GAS Mileage Chart Formatting

Feb 20, 2008

I have created a gas mileage chart where the MPG line will change from one color to another as the "type" of driving changes (Highway to City). However, the chart also ignores any non-full tank data to eliminate spikes that arise in your MPG calculations when you don't fill your tank up all the way.

I have attached a spreadsheet detailing what i have done and would like to know if anyone can think of an easier way to replicate this chart.

View 10 Replies View Related

Create Mileage Log From One Sheet To Another

Oct 26, 2008

I am trying to create a very simple mileage log that would get data from one sheet when I input it into another. (I attached the sheet). I have it set up so that it the formula is on bottom of sheet labeled store to store mileage but I would like to be able to track it easier on a different sheet called mileage log. So basically what I would like to do it put a formula in the mileage log so that I can just type in the store number in the to and from cells and have it populate it from the store to store mileage shet. I am an amateur. If it is easier I can just make another simple excel sheet that is on a seperate worksheet instead of using the mileage log.

View 4 Replies View Related

Flag Record That Has Overlapping Date As Another Record?

Mar 16, 2014

I am creating an asset management sheet. For the formula I am trying to work out there uses 3 fields : ID, start date, and end date.

What I want to do is be able to show if the ID is duplicated within another record with an overlapping date. So an item is flagged if it is in the list within the same dates as another record. I tried a few countif formulas but with no success.. I may just be approaching the problem incorrectly though.

View 1 Replies View Related

Ignore Blank Cells And Truly Blank Cells In Named Range?

Jan 13, 2014

Ok so my named range looks like this:

[Code]....

However, I want to ignore the "" cells and the truly blank cells... However, I think all of them will have "" since I have this formula in all of the ones I'm putting in the range:

[Code]....

How do I go about getting these results into a named range so I can use it on validation since validation only seems to ignore truly blank cells and not the "" ones.

View 4 Replies View Related

VLookup: Calculate The Mileage From Two Destinations

Jul 9, 2009

I am trying to create a multiple v look up formula to calculate the mileage from two destinations. I have a table with a From column, To Column, and miles column with data.

I would like to automatically calculate the mileage determined upon what the user picks as the two destinations from a drop down list. I thought it would work like this =VLOOKUP(B5:C5,G3:I14,2) But I'm not sure if I can have a range as the lookup value. I have attached my sheet I am working from.

View 3 Replies View Related

Record Or Report Editing Of Cells

Dec 15, 2006

I have a need to determine in VBA if a cell has been deleted or edited. I need to perform lots of work and form entries on edited cells. I would like to just ignore deleted cells. Presently, I'm using

If Workbook_SheetChange not Worksheet Change
and loop through each cell to determine it's state and thereby its affect on my workflow.

View 4 Replies View Related

Use Closest Date To Find The Starting Mileage Of Car?

Dec 26, 2012

I have a list with all our company cars (300). I also have a list with all the transactions of the fuel cards (12000 lines). Now I need the find for every company car (exact match) the nearest fuel-consumption-date (closest match to the given starting date) and take the mileage of that transaction. I've added an example. I have tried linking carnr and date (like carnr&"#"&date) and match these, but I don't always get the right car number.

View 1 Replies View Related

Calculate Pay For Mileage While Factoring In The Number Of Participants

Jun 2, 2009

I'm trying to do is calculate pay for mileage while factoring in the number of participants. In other words, if the mileage was between 0 and 50 miles, and there were 5 or less people, then this cell should be $35.00. But if it's between 0 and 50 and there were more than 5, then this cell should display 175/the number of people (175 being 35 * 5). In other words, more than five people would receive an equal amount of the total pay for five people (this is because five people are the standard, but there are instances in which six or seven could participate and I was hoping to avoid hardcoding that).

The rest of the if statements simply follow that same formula, but for different mileage/pay rates.

View 6 Replies View Related

Calculate Mileage For Discrete Date Ranges

Aug 8, 2008

I have a list of mileage rates that correspond with different date ranges. For example the mileage rate for March 19, 2008 – July 31, 2008 was 50.5 cents per mile. I have 11 different mileage rates / date ranges from 2000 onwards.

I would like to devise a way that I could input the date and the number of miles travelled into the spreadsheet, then Excel would check the date entered in order to choose the appropriate mileage rate and calculate the dollar amount based on the # of miles input.

Here are the date ranges and rates in the event that anyone is interested in putting something like this together. I would be grateful for an example for one or two of the rates though and hopefully could extrapolate from there.

1/1/00 - 3/31/00 - 32.5 cents per mile
4/1/01 - 12/31/01 - 34.5
1/1/02 - 12/31/02 - 36.5
1/1/03 - 12/31/03 - 36
1/1/04 - 12/31/04 - 37.5
1/1/05 - 8/31/05 - 40.5
9/1/05 - 12/31/05 - 48.5
1/1/06 - 1/31/07 - 44.5
2/1/07 - 3/18/08 - 48.5
3/19/08 - 7/31/08 - 50.5
8/1/08 - current - 58.5

View 5 Replies View Related

Compare Actual Grade To Potential Grade And Highlight Cells

Jul 10, 2013

I am compiling a master spreadsheet to analyse progress of students. I have their potential grades in one column and their latest progress grade in another.

I would like an automatic look up of the potential to the progress grade so that if their current grade is BELOW their potential that gets highlighted one colour, if it is above, another colour.

One issue is that the grades are all letters (S, A, B, C, etc.) and that some potential grades are 'dual' (i.e. A/B, S/A) which complicates the issue somewhat.

View 7 Replies View Related

Macro For Merging Cells "without Actual Cell ID"

Mar 31, 2008

how to merge cells AFTER THE CODE BELOW.

Can anyone tell me how I merge cells without naming the cells?

Say that I want to go to cell A13 and then to the first empty cell in that column, where I want todays date.

Then I want to go 1 cell to the right, from that cell I want to merge 14 cells into one big cell in which I want some text written.

I come to the start cell by the following

View 10 Replies View Related

Keep Track & Record Linked Formula Cells

Mar 9, 2008

I currently have numerous workbooks with linked cells to a master workbook, but the linked cells dont appear to carry over or retain the formating from the master workbook (e.g. font style, bold, underlined, font color, cell color). I make changes quite often to the master workbook and would like the changes carried over to the other workbooks. Does anyone have a script where it would automatically carry over the font formatting? I hope this is understandable.

View 4 Replies View Related

Macro To Print Record # To Record#

Mar 20, 2009

I'm trying to find a macro that will run allowing the user to select a 'starting record number' and a 'finishing record number' when printing.

I have a spreadsheet that feeds from a master list in excel, from over 5000 records.

I need to print the s'sheet with any given indivdual record's information at any given time.

Individual prints are fine. However if I wanted to print from record number 1500 to record number 3000 it would take me all day.

Is there a way I can set up a macro so an option form pops up? allowing selection of "From record" and "to Record" ?

View 13 Replies View Related

Leaving Blank Cells Blank In Dragging Formula Combining Different Formulas In One Cell?

Aug 2, 2014

I can't modify my formula to leave blank cells blank when dragging it down, Also, I've got two formulas that i need to combine. Please view the comments I've put in cells E4, F2,F3,H2 and I2 to understand clearly what am seeking. See the attached worksheet.

View 8 Replies View Related

Fill In Blank Cells Referencing Non-Blank Cells Above

Apr 17, 2008

I have sporadic cell values in a column. I will be describing the lamen logic I use to fill in these blanks manually. Find the first nonblank cell in the column, then look for the next nonblank cell in the column. I count the number of blank cells in between. If even # of blank cells, then I give the first half of the blanks the value of the first nonblank cell and the second half of the blank cells the value of the next nonblanck. If odd # of blank cells, then I do the same with the exception that the odd cell that falls in the middle will be randomly designated the value of the either first or second nonblank cell.

View 4 Replies View Related

Count Blank Cells Within A Range Not Including Fully Blank Rows

Jul 15, 2008

I can count the blank cells withiin a range using

=COUNTBLANK(C6:AD2506)

But I dont want it to count the cells if the entire row, within that cell, i.e. C6:AD6, is blank.

It should only count the blank cells within a row if there has been some data entered on that row..provided it has been entered within the specified range.

View 14 Replies View Related







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