Some and any are two English determiners used to say how many or much of something we mean. The rules of using them are very easy, but you should look at examples below that explain some differences in specific situations.

We use some in affirmative sentences and any in negative sentences and in questions. Look at first examples:

We bought some food.

We didn’t buy any food.

Did you buy any food?

We do the same while using words containing some and any:

Somebody was walking behind me.

I didn’t see anything there.

Did you see anything intersting?

You should notice that don’t, didn’t etc., aren’t necessary to use any. If you use words that have negative meaning like seldom, hardly, never, without or negative verbs like deny, refuse, forbid, you should also put any instead of some:

She left without any money.

They refused to go anywhere.

There is hardly any food left.

I never tell anybody anything.

If you ask about one specific thing, an item or a person who exists (or at least we suppose they exist), we use any:

Why are you looking for? Have you lost something?

Are you waiting for somebody?

We use some while offering, requesting or when we ask in a polite way:

Would you like something to drink?

Do yo mind if I get some apples?

Can you give me some specific information about your former job?

We use any with conditionals when we don’t talk about one specific thing but one of many:

If anyone has any problems, please ask me.

Let me know if you need anything.

We also use any with meaning no matter which one:

Which movie would you like to watch? Any movie will be ok.

He has so much money that she could buy anything he wants.

I was so lonely. I just wanted to go out anywhere with anybody.