Incrementing Variable M$2:M$8 by 7 each row [EXCEL] - excel

I want to increment the following cell M$2:M$8 by 7 each row (See code below).
Can someone help me with programming the right function? I feel like their must be a smart way to do this. Thanks in advance!
=SUM.IF('Energie+WarmteBalans(Jaar)'!M$2:M$8,"<0")
=SUM.IF('Energie+WarmteBalans(Jaar)'!M$9:M$15,"<0")
=SUM.IF('Energie+WarmteBalans(Jaar)'!M$16:M$22,"<0")
etc.

use INDEX:
=SUMIF(INDEX('Energie+WarmteBalans(Jaar)'!$M:$M,(ROW($ZZ1)-1)*7+2):INDEX('Energie+WarmteBalans(Jaar)'!$M:$M,(ROW($ZZ1)-1)*7+8),"<0")

Related

Need help writing IF Statement

I need some help. I rarely use IF statements in excel, I usually do Index Matches, VLookups etc. So when I came across this, I thought I could come here for some help.
I want to have an IF statement that returns 5 values.
In the picture attached, you'll see 5 levels.
If the value is less than or 0 then 5.
If the value is 0.01 - 5.99 then 4.
If the value is 6 - 12.99 then 3.
If the value is 13 - 29.99 then 2.
If the value is 30 or more then 1.
If anyone can help mem with this, that would be amazing!
Thank You!
It seems to me that this is what you need:
=IF(A8<=0,5,VLOOKUP(A8,$A$1:$B$4,2,TRUE))
I would just go with a vlookup like so:
=vlookup(D2,A4:B8,2,1)
If you are looking for a nested if formula and using the data set shown in the image of your question, then this will work:
=IF(A8=B1,A1,IF(OR(A8=B2,A8<=C2),A2,IF(OR(A8=B3,A8<=C3),A3,IF(OR(A8=B4,A8<=C4),A4,IF(A8=B5,A5,"Out of Range")))))
In this formula, I have used cell A8 as the reference value.
If you do not want to change the direction of your data, then using a nested if statement like the below should work:
If you do not want to use the lookup table, then will be easier to use the LOOKUP function with constants:
=LOOKUP(A1,{0,0.01,6,13,30},{5,4,3,2,1})

Need Help To Get Matched Values From Table 1 to Table 2

Please Help me to Get Matched Values From Table 1 to Table 2 based on formula's
The table to needs to be filled by ref values based on the associate marked attendance.
I have tried V lookup() and Match() Nothing worked out.
Sorry ! Guys ! Self Found an Answer Just Now. I used it earlier but forgot it.
Just Now Remembered again.
The Value can be Get Through Countif() Function. and It it's HD Then Countif()*.5
If anyone know's other methods please post here so that will get some
idea's in easier way

Looking at multiple values with one statement w/o OR statement

Say I have multiple tasks: quoting, binding, rating that have same response time of 3 hours... I was wondering if there was a way to make an IF statement such that I could just say for example:
=IF(B2="*Quoting,Binding,Rating", C2+3, NA)
I haven't been able to get it to work, and I'm trying to avoid using an OR statement with the IF statement to get the values, but is it possible to do it this way? It sounds simple, "If it's task x,y,z then add 3 hours to the start time column (C2)". Any advice guys? Thanks!
This may achieve what you're after
=IF(NOT(ISERROR(SEARCH(B2,"Quoting,Binding,Rating"))), C2+3, "NA")
Hope that helps
Use the OR statement: =(IF(OR(B2="Quoting",B2="Binding",B2="Rating"),C3+3,NA()))
If you're looking to shorten the formula, you can put the values you want to check into a named range (I used "List" to reference "I:I" but you could put the list on another sheet) and use SUMPRODUCT.
=IF(SUMPRODUCT(--(B2=List))>0,C3+3,NA())

How to create a bar chart that counts how many times comma separated values appears?

My data(a column) is from a question which allowed multiple responses. So in each cell I have something like "A,C,E" and I'd like to create a bar chart with each answer as a category(A,B,C,D and E). I know the basics of pivot tables. Thanks in advance.
You can use SUBSTITUTE and LEN to count the number of commas.
=LEN(A1)-LEN(SUBSTITUTE(A1,",",""))
For example that would return:
A,C,E 2
A,C,E,F 3
A,C,E,D,E 4
If you actually want to analyse each letter (which I think is what you really want to do), then you'll need something more like the equivalent of explode in PHP. There's some more information at https://support.office.com/en-us/article/Split-text-into-different-columns-with-functions-49ec57f9-3d5a-44b2-82da-50dded6e4a68
I did it by using the formula =IF(ISNUMBER(FIND("A",cellname)),1,0).
Problem solved.

IF statement and multiplying

I have an IF statement =IF(C7="SR",Rates!$G$20,IF(C7="UC",Rates!$H$20,IF(C7="DC",Rates!$G$20,))))
This works great and gives me the correct rate. The next step I need is to calculate that rate with a value from another cell. A simple =SUM(D6*P6) returns #VALUE!
Can someone please assist with this? Many thanks in advance
What are you trying to do with D6 and P6? (what's the value of both fields? numerical values?)
SUM(D6*P6) should work but I don't see what's the utility (just =D6*P6 would give you the same answer since you're not summing anything).

Resources