Problem counting values, not returning anything - excel

I have the following formula but for some reason is not returning anything, can someone help me? Thanks
=COUNTIFS(B:B,">="&Ranges!A2,B:B,"<="&Ranges!B2+0.999988,C:C,">=Ranges!$D$2",C:C,"<=Ranges!$E$2")

You've got the criteria wrong in the last part - they should use similar syntax to the first two - in other words:
=COUNTIFS(B:B,">="&Ranges!A2,B:B,"<="&Ranges!B2+0.999988,C:C,">="&Ranges!$D$2,C:C,"<="&Ranges!$E$2)

Related

Limit the characters that can be used in a field in formula

I need to limit the characters that can be used in a field to 0-9 and {} and -
I have this working so far, in the Input Validation:
#Matches(#thisvalue; "+{()0-9}")
But how do I go and add the - in this formula?
As usual, thanks fot the help.
Oh boy... I guess I was tired last night... I ended up making work with this:
#Matches(#ThisValue; "+{\-()0-9}")
Hope it might help someone else one day...

Index Match with and If

If anyone could help it would be greatly appreciated.
I cant get my code to work it keeps bringing back an answer of "no" I need it to complete the following index and match if the initial If criteria is met but it isn't working.
{=IF('All Data'!E3:E6= "1",(INDEX('All Data'!$F$3:$F$6,MATCH($G$11,'All Data'!$D$3:$D$6,0))),"no")}
Thanks
Paula
I managed to get this to work through using multiple criteria in my index match
=INDEX('All Data'!$F$3:$F$190,MATCH(1,($H$5='All Data'!$E$3:$E$6)*($G$11='All Data'!$D$3:$D$6),0))

vlookup not working when unique identifier has spaces and/or slashes

I am trying to do a VLOOKUP in excel, and I have, lets say the following unique identifiers:
Failure
Accept/Fail Okay
Accept/Fail N/A
Success
using the VLOOKUP, when i use Failure or Success as the unique identifier, it finds the data I am looking for, but if I try to VLOOKUP the other which spaces or slashes, it just returns #N/A.
Is there something I am missing? like i said, the simple 1 word ones are found with no issues, but the others don't work.
Any help would be appreciated!
Thanks
Tried this on my end and was able to reproduce the problem.
The solution appears to be to set the optional [range_lookup] argument to FALSE. After doing this, I was able to perform successful lookups using all of the provided values.

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).

Excel Match multiple criteria

Could someone help me turn this 2 Criteria match function into a 4 criteria match function please? This one works, but is only the start:
=INDEX(range1,MATCH(1,(A19=range2)*(B19=range3),0))
I also want a third and fourth match in the above formula, with those two being an OR option. I thought based upon the working version that this might work, but it doesn't:
=INDEX(range1,MATCH(1,(A19=range2)*(B19=range3)*(OR(C19=range4,D19=range5)),0))
I've been trying to use AND commands, my initial version of the first code above being this:
=INDEX(range1,MATCH(1,AND(A19=range2,B19=range3),0))
It always returns #N/A after CTRL+ALT+ENTER is entered though, so it's obviously an issue with my understanding of either MATCH or AND (or both I guess),
The first example works EXACTLY as intended, but unfortunately I don't know why and I can't work it out well enough to adapt it. Maybe I'm too tired and have run out of space in my head for the peculiar way in which Excel formulas work, but I've read and re-read the help files for them and still it doesn't make sense to me.
Any help would be greatly appreciated, as always.
Thanks,
Joe
I'm just guessing here, but would this work?
=INDEX(range1,MATCH(1,(A19=range2)*(B19=range3)*(((C19 = range4)+(D19 = range5))>0),0))

Resources