〜によって / 〜によると によって means "depending on", "due to", or "by" (the doer in a passive sentence). によると gives the source of information ("according to ~").
Formation
noun + によって ・ noun + によると
| 人 | 人 + によって | 人によって |
| 地震 | 地震 + によって | 地震によって |
| 天気予報 | 天気予報 + によると | 天気予報によると |
Examples
天気予報によると、明日は雪だそうです。
According to the weather forecast, it will snow tomorrow.
考え方は人によって違う。
Ways of thinking differ from person to person.
この寺は300年前に地震によって壊された。
This temple was destroyed by an earthquake 300 years ago.