vlookup with effective date/rate [closed] - excel

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to write a vlookup formula that will
1). check for duplicates in the list and
2). if there is a duplicate, then check the dates, and pull the correct rate in the vlookup return value, depending on the date.
So for example, if Michael has a rate of $100 per hour for 7/1/2017, I can assume this is his rate until noted otherwise with an additional line. On 7/3/2017 his rate changes to $120. So for hours worked on 7/1/2017 and 7/2/2017, the rate should be $100, but on 7/3/2017 and on, the rate should be $120, or until a new line is added for Michael indicating a new rate on a specific date.
Can anyone help with this?
Thanks!

You could do something like this if you sort by name and by date descending
Note it's an array formula so you need to use Ctrl+Shift+Enter

You could do this with MAXIFS(). The multiple conditions lets you find the multiple conditions, but MAXIFS() will always return an individual value unlike SUMIFS or COUNTIFS. Place hte formula in cell F2 and fill it down
=MAXIFS('Effective Rate'!$C:$C,'Effective Rate'!$A:$A,A2,'Effective Rate'!$B:$B,"<="&B2)

Related

How to change Format "Hours" to "hour : minutes" in excel [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
hi everyone i have one columns is Duration columns, the column is in hour format, and I want to convert it to "hour:minutes" format, what formula can I use in excel?
i use =TEXT(A1/24,"hh:mm")
You need to divide hours by 24. Try below formula-
=TEXT(A1/24,"hh:mm")
Check this article from exceljet.net Convert decimal hours to Excel time.
From #Gary's Student answer, you can also use same format with text function.
=TEXT(A1/24,"[hh]:mm")
With data in A1, in another cell enter:
=A1/24
and format as follows:
Note the brackets in the formatting:
[hh]:mm
The other answers are fine, but I wanted to offer an alternative that does not involve formatting the cell (which may or may not be desirable, although it probably usually is the best way TBH).
The following formula splits the hours and minutes:
=FLOOR(S10,1) & ":" & (S10-FLOOR(S10,1))*60

excel skip over cells based on variable [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I'm working on a budgeting spreadsheet that has a different replacement cycle for equipment and I want to visualize when everything will be scheduled to be replaced.
Column 1=name, Column 2=deployed, Column 3=expected life, Column 4=retire date, Column 5=price
I want to have another table next to it that shows the next several deploy dates (for the next 15 years) based on the expected life. Right now, I'm having to manually count over X number of cells and enter in the price and then count over again.... for each row.
I know there has to be a automated way to do this, but I'm new to excel macros and I've looked at several functions, but can't get anything figured out. What functions should I be looking at?
A formula like:
=IF((G$1-YEAR($B2))/$C2=ROUND((G$1-YEAR($B2))/$C2,0),$E2,"")
Should do the trick
(the above for column G, it is assumed the year is in G1)

Calucating the total number of cells in a row that are less than 16 hours [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I need the total number of cells in sheet-1 Column B that are less than 16 hours where Sheet-1 Column A is not equal to 5 in sheet 1 E4 cell.
For Ex please see the image attached.
Please click on this link to find the example
Assuming that
column A of sheet1 are date/times, and not text, and
you are attempting to find how many date/times are more than 16 hours old
then you simply want to place the following formula in sheet2!F7:
=COUNTIF(sheet1!A:A,"<"&NOW()-0.75)
(16 hours is 0.75 of a day.)
If the data in column A is text, then it gets slightly harder as you have to ensure that Excel does not treat the NOW()-0.75 as a date/time. You can trick it by adding an extraneous character to the end of the formatted date/time so that it no longer appears to be valid, e.g.
=COUNTIF(sheet1!A:A,"<"&TEXT(NOW()-0.75,"yyyy/mm/dd hh:mm:ss")&"#")
worked for me. (The extra "#" at the end forced it to no longer be a valid date/time string.)

excel help: trying to create a date formula [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
i want to create a formula like this,
=DATE(YEAR(any)),MONTH((any)),14)
i don't care about year or month only the day.
apparently excel doesn't let me add "any" as a fuction. can someone please help me?
Consider:
=DATE(RANDBETWEEN(1,9999),RANDBETWEEN(1,12),14)
To use the current year and month, use this formula:
=DATE(YEAR(NOW()), MONTH(NOW()), 14)
However, the month does matter if you wanted to put 31 for the day (or 29/30 if the month happens to be February), so you might want to just always use a specific year and month that will allow for maximum flexibility, such as:
=DATE(2000,1,14)
One thing I would suggest is to ask yourself why you are storing this as a date in the first place if you only care about the day of the month. You could just store 14 and label the column "Day of Month". To better answer your question, it would be helpful to know what are you actually doing with these dates.

a simple excel command or a program that updates value? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I would like to beg for my stupidity, bear with me, I am very new!
I will try to make it as clear as possible.
I want to create a excel program or possibly just do it with excel, that I can use for my business.
Let's say I have a customer that prepaid $100. He purchased $3 the first day and $8 the next day.
I would have a value of $100. I subtract $3 then the $100 would become $97. Then subtract $8 so it would become $89. So basically, it keeps updates the amount.
I couldn't figure how to do this in excel. Is there a way to allow this in excel? or do I have to make a excel workbook or excel template using commands?
I would love to get help from professionals!
Maybe this is the sort of thing you want:
This seems basically to be as described by #Jerry. C2 has an entered value and other values are entered in ColumnB. C4 onwards are simply the formula in C3 copied down to suit.

Resources