Multidimensional lookup against a range - excel

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.

Related

Excel - check values in multiple columns and return the sum of a third column

I am very well aware that similar questions have been asked many times before but somehow the answers don't work for me. So I am sharing my example with you and hope for your assistance.
Please see the attached example.
I want to return the sum of the Amount column, but only if all of the following criteria is met:
The value of Category is 1
The value of Eligible is Yes
The value of Currency is GBP
The sum that should be returned is 9000 in this example.
But since I have hundreds of values like these, I need a formula to do it.
Your help is greatly appreciated.
You can use this formula
=SUMIFS(D2:D12,A2:A12,1,B2:B12,"Yes",C2:C12,"GBP")
You have to change the range references according to your data.

Filling columns based on category and intervals

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:

VLOOKUP where lookup value is a day

I'm trying the get the average value out of this table that has a lot of data in it.
I tried to VLOOKUP function but i can't get it to search on day names :(
If someone could help me that would be much appreciated!!
enter image description here
This basically the same as answer already given but for text and for all averages to return
=SUMPRODUCT(--(LEFT($B$2:$B$15,FIND(",",$B$2:$B$15)-1)=$H2),D$2:D$15)/SUMPRODUCT(--(LEFT($B$2:$B$15,FIND(",",$B$2:$B$15)-1)=$H2))
Put in I2 and drag right and down.

Excel: Compare strings in column 1 and sum their values from column 2

I Have two columns of data. Column 1 has dates. Column 2 has value ranging from 1 - 5, so each Date will have a value associated with it on the same row. I am trying to compare dates in column 1 and Match same dates. I would then like to Sum the matched dates values together.
Edit: I am Sorry I assumed tagging Excel formula would imply I was looking for an excel formula that would fork best to try this. I am taking on a project on my own and have no support from others. Stack overflow is an amazing resources for people like myself with little experience to connect with experts. However the responses so far seem rude and unsympathetic to someone trying to learn a new approach to excel.
I tried to create this statement to find matching dates in column E and then multiply their values in column G. So far it just adds up column G.
=IF(MATCH(E2,E:E),SUM(G2,G:G),PRODUCT(G2,1))
Is their an easier formula to use? What does the =INDEX formula do, and would it help store the values on the rows of the matched dates?
Assuming Dates are in Column G with associated Values in Column I and dates to compare are in Column K then to get Sum of values of each date from Column K enter the following formula in Cell L2
=SUMIF($G$2:$G$21,K2,$I$2:$I$21)
Drag/Copy down as required. Change range as needed. See image for reference.
If anything is not clear let me know.
PS : Now imagine if I write only the formula in my answer without any explanation or screen-shot. Will you be able to understand my answer. Probably No. So people here are not rude, its just we want sufficient information in question so that we can understand and help you better. We are here to ask and answer questions and help anybody in solving their problem provided we understand the problem and efforts from your side could be seen in solving your problem.

Locking an Excel formula

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.

Resources