Formula To Find Date Based On A Cell Value
First one needs to look through a single row and find where the first cell with a value (text) in it, then finds the date that that cell is under.
Second one needs to look through the same row to find the last cell that has a value (text), then finds the date again that that cell is under.
Example workbook is attached
View Complete Thread with Replies
Sponsored Links:
Related Forum Messages:
Formula To Show A Date Range Based On The Amount Shown In Another Cell
Attached is a excel file that has a working formula for tracking cashier variances. I edited out names etc. I added a new cell called Track Back on the employee search sheet. What I want to do is only show variances for the amount of days back selected in the Track Back cell. For example if I select the last 30 days, only the last 30 days would show up below in the sheet. I am not sure if this is even possible based on the forumla that is already on the sheet. I couldn't figure out a way of doing it. But there are a lot of people on here much better with excel than me
View Replies!
View Related
Find Matching Document Value And Max Date Using Function Based On Certain Parameter
I have the following info in a table: name | doc date | doc value a | 2009/01/01 | IN111 b | 2009/02/04 | IN222 c | 2009/02/05 | IN333 a | 2009/01/05 | CN111 d | 2009/03/01 | IN444 b | 2009/03/01 | CN222 a | 2009/04/01 | IN555 Firstly, I need to find the LAST DOCUMENT DATE for "a" where #doc_value starts with IN*** (invoice). Manually, I can see that it would be "2009/04/01", but my spreadsheet runs 6000+ entries. I need a function to do this. Secondly, I need to find the corresponding #doc_value for that date (in this case, IN555).
View Replies!
View Related
Formula To Find Next Thursday's Date
I need a formula to find the delivery date for an order. If the order is placed by Friday, it will be delivered on the following Thursday as long as it isn't a holiday when it would be the following Friday. I have the holidays listed in a range of cells I2:I5. OrderedDelivery4/3/20094/9/20094/6/20094/16/20094/7/20094/16/20094/8/20094/16/20094/9/20094/16/20094/10/20094/16/200911/20/200911/27/2009 Is it possible? If I can calculate the next Thursday part without taking into account the holidays,
View Replies!
View Related
Using VB To Find A Range Based On Todays Date And Todays Date +30
1 column in my sheet is a list of dates (affectively a calendar). I am trying to create a macro that will only display rows 1-5 and then current the current date and the next 30 days and hide all other rows. The approach I have tried is to use “ADDRESS(MATCH(BS40,$B$1:$B$462,0),2)” equation to find the cell with todays date in it (Cell BS40 contains todays date). This was repeated for todays date +30. The problem I have is that although I now have the cell address’s located I cannot reference their values in a range.select What I want to do is somwthing like this:
View Replies!
View Related
Find Company Stock Information Based On Date & Symbol Input
What I have is an output of about 30 worksheets of individual stock data in a workbook, all with the same column headings, laid out like the following (so that the Column Headings are stock data as recorded on the Date in Column A): <Stock Name> <Date> <Price> <Price to Book> <etc.> with the stock titles also as the names of the worksheet. What I want to do is create a macro that outputs to a single worksheet where I can input the stock name and a certain date for the stock, and then have it insert the appropriate row from the stock's worksheet underneath. So, if I say I want the data for Stock A on March 24, 2007, I can input those two and have it output the appropriate rows from the worksheet. Or, more generally, I can create a list of stock names and dates, and have the macro output that data underneath.
View Replies!
View Related
Returning A Formula Based On A Date
I have a spreadsheet with 2 worksheets within it. These are simply called sheet 1 and sheet 2. On sheet 2 I have cell A1 containing =(TODAY()) Also on Sheet 2 I have cells A28 to A39 containing Month names and cells B28 to B39 containing values. Like this January 1000.00 February 1000.00 March 2500.00 April 1250.00 May 1750.00 June 2200.00 etc How can I return the sum of these values into Sheet 1 B18 based on the date. That is to say that I want to add up the sum of Jan, Feb, Mar, Apr, May up to and including callcualtaions made on 31st May but as soon as the date goes past 1st Jun I'd want to include June as well and so on.
View Replies!
View Related
Locate Date Function/Formula Based On Criteria
I am trying to find the starting effective month for a workyear. The criteria for the selected month is that the data BEFORE the effective month is all zeros. I manage to get the result if the data AFTER the effective month is ALL non- zeroes. If there is any zero, the data fetch will be inaccurate due to the COUNTIF formula. Is there any other way or formula that will enable me to get the result. File attached for testing and reference
View Replies!
View Related
Find Last Cell In Range, And Changing Another Cell Based On Offset Text
If i have a range say E12:O12 and want to find the last cell before blank, lets say it finds m12 as the cell with the value before blank. then with m12 it needs to determine weather row 11 in the same column has Text either "S" or "F" if "S" then m12 = t if "F" then m12 offset(1,-1) = t. And just to make things more difficult i need the range E12:O12 to step 2 as well until it gets to E208:O208 .Noting that row 11 never changes and will always have either an "S" Or an "F" and also t = time()
View Replies!
View Related
Find The First Cell In A Row With A Date
I have a table which, across the top, has different cell titles, say "Category" in A1, "Budget" in B1, and C1 through F1 are date values. I need a formula which will return "C1", because it's the left-most cell in the first row which contains a date. I know I can find a date with ISNUMBER or the TYPE functions. But I cannot get TYPE to work on an array. Honestly, I can't even understand the behavior of TYPE. Let's say B1 contains a string, and B2:B8 contain numbers. If I select one cell and do TYPE(B1:B8) and press enter, I get "2", because B1 contains text. If I change B1 to a number, the TYPE cell returns "16", which means error. Wha....? If I instead press CTRL+SHIFT+ENTER on the TYPE cell, I get "64", which is the array type. So obviously this is not doing what I want it to do (which is to run the function TYPE on each of the cells B1 through B8). With ISNUMBER, I can get the array functionality, but I want to find the *first* numerical cell, not if each cell is a number.
View Replies!
View Related
DATE Function & IF Function (return A TRUE Or FALSE Based On A Date In A Cell)
I am trying to return a TRUE or FALSE based on a date in a cell. for example: if cell A1 = 07/11/2009 I want A2 to show TRUE or FALSE if A1 is 14 days or more behind todays date. I have tried stuff like: =IF(A1=TODAY()-14,"True","False") but it just always says false. EDIT: I have just noticed that if I change the date in A1 to exactly 14 days behind todays, it returns TRUE. So, it does work. Do I need to add a GREATER THAN in there?
View Replies!
View Related
Macro: Changing Cell Color Based On Date In Cell
I did a search on this site and found some code I was looking for (see link: http://www.excelforum.com/excel-prog...e-in-cell.html - Leith Ross's response code). The code works perfectly, however, if I save the workbook with a different spreadsheet on top than the spreadsheet referred to in this code, I get an error message: Method 'Range' of object '_Worksheet' failed. I should state that I did change "Private Sub Workbook_Open()" to "Private Sub Auto_Open()". I assume I need to modify the code but am unsure as to how.
View Replies!
View Related
Find Cell Based On Column And Row
I have a spreadsheet which has about 100 different SKUs in column A and the inventory for each SKU by period in columns B:Z So for example B would be P1W1 and C would be P2W2, etc what kind of lookup function would I use in VBA to find per say, the value of SKU #: "27017" in P1W2 ? Apart from pivot table.
View Replies!
View Related
Find Cell Based On Return Of MAX Value
This time I'm trying to use the max value and row value at the same time, but it won't let me. Here's what I'm trying to do... A B C D 1 a b c d 2 7 9 4 2 3 e f g h 4 8 2 7 8 5 i j k l 6 4 3 3 9 I want Cell A7 to return the letter before the highest value in column A... A7=e B7=b C7=g D7=l I tried to do something using two cells, but even then I couldn't figure it out. I thought a ROW(MAX(A1:A6)) would give me the row and I could go from there, but that didn't work.
View Replies!
View Related
Find Worksheet Based On Data In A Cell
In Sheet1 I've got a list of names in column A, then I've got a worksheet for each name in the list. I'd like to fill in column B with information from the worksheet of the same name as in column A. Quick example...name in column A is Davis, want to fill in column B with a value from cell C3 on worksheet named Davis and do it for the entire list. Data being looked for is in same cell on each worksheet. Tried using a formula and dragging it down the list, problem with that is it doesn't change the sheetname just the cell.
View Replies!
View Related
Formula That Will Determine The Number Of Days That Fall In A Specific Month Based On A Date Range
I'm needing a formula that will determine the number of days that fall in a specific month based on a date range. For example, if I have a date range of 10/15/2009 to 01/13/2009, I need the formula to determine the number of days in each month within the range (October has 15 days in the date range; November has 30, December has 31, and January has 13.) I have a large spreadsheet that would be so much easier to manage with such a formula. Currently, my spreadsheet is setup as follows. I need the forumla automatically fill in the number of days under each month. Stard Date End Date Oct-09 Nov-09 Jan-10 Feb-10 10/15/2009 01/13/2009 I'm using Excel 2007.
View Replies!
View Related
Find Date & Pass Offset Cell To Variable
How do I use VBA to send the value of a cell, for example, cell J77 to the variable "mastervalue1"? I have a spreadsheet that has a column with dates ( in the format "mmm-yy") and next to it a column that has values. I want to pass the value of the cell that is next to the date cell that contains today's month to a variable in VBA. Auto Merged Post;here's an example of my spreadsheet
View Replies!
View Related
Find Date In Column & Return Adjacent Cell Value
I have a spreadsheet with a column A of dates April 08, May 08, June 08 etc. Adjacent to each of these dates is a value in column B. I want to select the appropriate value relevent to the current date and use it elsewhere. Therefore if it happens to be Oct 08 when I open the spreadsheet I want the value in column B, adjacent to Oct 08 to be represented.
View Replies!
View Related
Find Text Based On Active Cell Contents
I have a workbook with 2 worksheets, A and B. Sheet A contains source data and sheet B a pivot table of this data. I want my user to click on a cell within the pivot table,click a button that runs a macro to find the instance of this value within Sheet A. I did record a macro but it did not work.
View Replies!
View Related
Colour Cell Based On Date ..
It's quite funny that i'm asking this cause I answered a similar quesstion earlier. But I can't seem to get my head around the thinking of this one. I am trying to create a formatting so that if todays date is greater than the date in the cell the cell is coloured red. And if todays date is > today()-14 <today() the cell is coloured yellow. I don't think it is as simple as using conditionaly formatting, it may well be but like I said I can't quite get my head around what I need to do.
View Replies!
View Related
Change Color Of Cell Based On Date
In an excell worksheet I need to change the color of a cell within a column based on the date entered. For example, if the date in the cell is 60 days from today's date then the cell should be green, if the date in the cell is 90 days from today's then the cell should be blue, if the date in the cell is 120 days from today's date then the cell should be yello.
View Replies!
View Related
Coloring Cell Based Off Of Other Cells Date
I am trying to make a certain cell range turn red on the week that a cell has listed. What this is being used for is to track the work of our contractors, and I currently have this set up to auto calculate the jobs that are being done and when, but I would also like to include something in there that when the contractor is set to head back to India, that day forward is listed as "red" under his name. This will allow me to see if I need to extend his work based on the number of hours he has left in his jobs. I will attach the picture of it...on the top you will see dates, and the pivot table on the bottom shows when he will need new work, but I am going to add a field that has the date he is set to leave, this is what I want the coloring of fields to go off of! ...
View Replies!
View Related
Sum Based On Date Cell Not Being Empty
I have a list of items and their prices, some of these items have been bought already and have the date of purchase stored in a date formatted cell. I have a running total of these various items but I only want to sum the ones which have been purchased already ie only those with a purchase date.
View Replies!
View Related
Date And Time Based On Shift In Cell
If I use =now() in a cell it will enter the current date and time. For shift workers, this does not work. I'm tring to figure out a formula that will only change the date at 6:00am every day. This way a person working the night shift will not see a change in the date on his sheet at all, only the day worker.
View Replies!
View Related
Copy-Paste Based On Date In Cell
I have data on sheet-1 ("MEAL CHART") that I copy over to sheet-2 (Nutri_DB) daily. The macro below is working for me when I post the data the same day it is recorded. However, I frequently need to post my data the day before or day after it is recorded. I would like to modify my code below so it copies/pastes the data based on the date in cell B1 (Named range "DATE") not the actual date (today()).
View Replies!
View Related
Copy Data Based On Date In Cell
I am trying to build a summary report that pulls from two different worksheets within the same workbook. Here's the context of my problem: Worksheet 2: Column A has a list of dates. The corresponding information for each date is within the row. Sometimes, there are repeated dates with different corresponding information. Worksheet 3:This is my summary sheet. This report needs to update daily and only pull data related to "today's" date. My question is if i have three rows with the same date but different data, how do i tell my summary sheet to display all three rows for that date. So far, I can only get it to pull the data from the last row with that date.
View Replies!
View Related
Find First Blank Cell In Column & Return Adjacent Date Less Than Or Equal To Today
how to make the data look like a table with three columns. Other than the date, it is space delimited. I have a tracking spreadsheet where Column A is populated with dates for the year. Column C contains daily values. I don't always start entering daily values on the first day of the year, e.g., this year the first value in Column C corresponds to March 9. All values in Column C are contiguous - there are no blank cells until the value in Column A is greater than today's date code. I would like to use a formula (rather than VBA) to look down Column C and find the first non-blank entry where the value in Column A is less than or equal to today(). In this case, the formula should return the value for March 9, 2008. CREATE TABLES LIKE BELOW?Column A Column B Column C March 1, 2008Saturday March 2, 2008Sunday March 3, 2008Monday March 4, 2008Tuesday March 5, 2008Wednesday ...................
View Replies!
View Related
Formula Find Last Used Cell And Change Referece
I have two columns of names of contiguos names. I want to copy all of them in a new column using a formula that copies the first column and when it reaches a blank cell only then move to the second column. So basically, a formula that copies a whole column up to a blank cell and then copy the second column.
View Replies!
View Related
Find Empty Cell And Add Formula
I have a spreadsheet that is pulled automatically from an access database. The information that is pulled is invoices that have been paid for each of the temps working for our company. Each month I have to give a figure per cost code on how much they are accruing so that they can see how much is still outstanding. Right so what I am trying to do is have a macro take the temps charge rate then * 40 hours and place the amount into the empty cell. As you will see in the attachement some of the cells are coloured. The purpose of the colouring is show that a invoice has been processed and paid for that week so no value is needed in that cell. Then total all the cells at the end.
View Replies!
View Related
Find Column That Has Value And Put Formula In Cell
I had posted this earlier but it was moved. I think this post will explain it better. I put data into a worksheet called "Budget" each week. When I put the data in I type a date in Cell "BL7". In another sheet called "EV Report" row 8 has week ending dates (i.e. Sunday of each week). I want to run a macro after I change the date ("BL7") and data in the "Budget" sheet that will search row 8 of the "EV Report" sheet to find the date in cell "BL7" of the "Budget" sheet. Once it finds which column that date is in I want it to put a formula in row 13 of the same column (the one found based on the date of BL7) that will add the value in row 12 of the same column with the value in row 13 of the previous column. I don't want the formula to be there until the macro is run. I'm doing this because I have a graph of the formula and I don't want the graph to show the other cells.
View Replies!
View Related
Formula To Find Last Populated Cell In Row
i need to find the last populated cell in the row say I9:CN9 and return the description for that column the resides in I5:CN5 and then fill the formula down for about 500 rows, just not sure even where to begin, do i need a custom formula in VBA? as i can't seem to find a combination that works built-in...
View Replies!
View Related
Highlight An Entire Column Based On A Cell Date.
I want to highlight an entire column based on whether a cell in that column is equal to today's date. I know how to write a loop that cycles through all of the columns until it finds today's date and then modify the column's properties, I was wondering if there was an easier way to do it. Also, I want the highlighting to be temporary meaning it should not save.
View Replies!
View Related
Auto Creating A Calendar Based On A Date In A Cell.
I am playing around with creating a calendar based on a date (month) I enter into a cell. I am doing this with a simple =date+1. I have a sample attached. Only problem I am having is that for months with 30 days I don't want the last day to show the first of the next month. But I can't simply remove that as if I entered a month with 31 days I would need it to show the 31st.
View Replies!
View Related
Module To Find & Move Based On Cell Adjacent's Set Value
ABCDE FGHIJK If the above is in different cells, I want to be able to move the data in "G" to the cell beside "E" (up a row and over 4 columns) IF the cell to the left of "G" equals what I specify is in "F" (for example use "product"). I would want to apply this to an entire sheet, not just once. If the macro (not sure what its called) could also then delete the row that contained "G" after it moves it, that would be even better! The output in the example above would be: ABCDEG F HIJK
View Replies!
View Related
|