I have the following problem. I need to fill in the points column based on the Category and score interval. I was trying to do it through the IF function but it seems very complicated. Everytime I try it with the HLOOKUP it also does not seems to work, as I simply don't know how to implement the category selection and interval selection in the formula. Any help would be appreciated!
Try in C2 and copied down to suit:
=2*IF(A2="A",MATCH(B2,{0,26,101}),IF(A2="B",MATCH(B2,{0,100,200}),IF(A2="C",MATCH(B2,{0,40,150}))))
You need a lookup row in each group with the low end of the interval to make the HLOOKUP work:
Related
(Pictures included) -
I'm trying to write a formula that sums the Forecast Qty (dynamic range) based on multiple criteria. The criteria I want to base it on is the Part number and the month (Aug-21, Sep-21 etc). Each part can have multiple forecasts for each month, I've ran a match formula that shows the first row in which each part changes, but am not sure how to necessarily break it down further into months.
The previous pictures will give more insight into what I want. The first picture shows my raw data and the Match function I performed to find the first row of corresponding part. The second picture shows where I'd like the end result. The '100' in the selected cell is the result of the formula I have ran below.
=IF(VLOOKUP(F2,HIghJump!B:F,4,FALSE)>DATEVALUE("9/01/2021"),SUM(HIghJump!F2:F6))
My issue is how do I get the range in the sum formula (F2:F6), to change based on corresponding month. Beyond that, how do I get this formula to change based on different parts and different numbers of forecasts per month.
Any help is greatly appreciated!
Use SUMIFS:
=SUMIFS(HIghJump!$F:$F,HIghJump!$B:$B,$F2,HIghJump!$E:$E,">="&EOMONTH(K$1,-1)+1,HIghJump!$E:$E,"<"&EOMONTH(K$1,0)+1)
This should go in L2 and copy down. Change the K$1 to each corresponding target date when moving over columns.
If I am understanding correctly and if you have the newest version of Excel, then FILTER will come in handy.
Try:
=SUM(FILTER(HIghJump!F:F,
(HIghJump!B:B=$F2)*(HIghJump!B:B>=K$1)*(HIghJump!B:B<EOMONTH(K$1,0)+1))
Note that it is generally considered best practice to use partial ranges (e.g. $B$1:$F$100 and $B$1:$B$100 instead of B:F and B:B), so that might be something you would want to consider if performance is of importance to you. Also make sure your sheet name is really "HIghJump" instead of "High Jump" or some variation.
Answer:
Had to create a column using MONTH(x), then base SUMIFS off that vs the original month column.
=SUMIFS(HIghJump!F:F,HIghJump!H:H,MONTH(K$1),HIghJump!B:B,F2)
I'm trying to rank the following items based on price using the following formula =SUMPRODUCT(([Item]=[#Item])*([#Price]<[Price]))+1, but it isn't returning any results:
When I use the same formula in the following test table it works, =SUMPRODUCT(($A$2:$A$7=A2)*(B2<$B$2:$B$7))+1:
Can someone please let me know what I am doing wrong? Thanks
EDIT 2 : Evaluation https://imgur.com/a/eXIYPAP
Your formula works fine for me.
Are you sure that A2 and A3 are the same value? There may be some hidden white space causing problems. Just try
=A2=A3
in another cell to make sure they are the same.
USE COUNTIFS INSTEAD
I don't know why your formula isn't working, however, I would suggest avoiding SUMPRODUCT where you can.
=COUNTIFS([Item],[#Item],[Price],">"&[#Price])+1
This will count the number of prices higher than the current one for each item (+1, if you want the rank to start at 1 instead of 0)
If your goal is to get the ranking for each unique item, =SUMPRODUCT(([Item]=[#Item])*([Price]>[#Price]))+1 should do the trick. If the goal is to get the ranking based only on price, don't have it figured out yet.
I am tracking travel times and part of that is 10-day averages. So I have the formula: =sum(a4:a13)/count(a4:a13) - and then a5:a14, a6:15, etc.
When I create new rows at the top, I find that my calculations have changed to =a4:a4 (11 rows).
What I think I need to do is =sum(a"row":a"row+10")/count(a"row":a"row+10")
I suspect this will turn out to be easy, but my Google searching ability has failed me so I'm hoping someone can help or point me to an existing answer.
Thank you!
Use INDEX:
The following will give you a static A4:A13:
=SUM(INDEX(A:A,4):INDEX(A:A,13))
You can do the same in the COUNT.
To make it more dynamic you can use Row and some math:
=SUM(INDEX(A:A,ROW()):INDEX(A:A,ROW()+10))
This will reference the row in which the formula is found and create a range that is from that row to a row 10 cells down.
I want to calculate time difference of a column in Excel, column data shown below:
08:06am-12:00pm
10:40am-11:30am
01:15pm-04:00pm
Please share any formula, reference or method to calculate time difference in Excel column.
This will do it:
=VALUE(MID(A1,9,5)&" "&MID(A1,14,2))-VALUE(MID(A1,1,5)&" "&MID(A1,6,2))
Apply a number format to the cell of hh:mm.
Please try:
=TEXT(LEFT(RIGHT(A2,7),5),"hh:mm")+IF(MID(A2,14,1)="p",1/2,0)-TEXT(LEFT(A2,5),"[hh]:mm")+IF(MID(A2,6,1)="p",1/2,0)-IF(RIGHT(A2,7)="12:00pm",-0.5)
It's pretty simple, actually:
=TIME(HOUR(B2),MINUTE(B2),SECOND(B2))-TIME(HOUR(C2),MINUTE(C2),SECOND(C2))
Where B2 and C2 both have times in them.
What it looks like there is that your column has BOTH times in it. You will have to split those columns first. Because the way you have it, the field will be interpreted as TEXT and nothing else.
I have been searching for awhile but was unable to find anything to help solve my problem so figured I would try posting on here for help!
I have attached an image of the table I am working with
Basically I want to be able to query this table by saying I have a value of 36 months (column c) and the sales value is 25000 (row 5) so the answer is C5 (25)
The only answer I can come up with a massive amount of if statements.
Thanks!
This is just a basic 2-way range lookup if you can transform column A into two columns. If you cannot it becomes very messy.
Take a look at this image:
The formula to do what you want with the data organized as in the image is this:
=INDEX(1:1048576,MATCH($C$9,A:A,1),MATCH($C$10,1:1,1))
You can use INDEX and MATCH combination.