Excel でデータの 3 行ごとに合計する方法 | office 365
ここでは、3 行ごとにデータを合計するための 4 つの関数について説明します。
ROW 関数は、指定されたセル参照の行番号を返す関数です。
ここでは、指定されたセルから行番号を抽出して3で除算します。
ROW 関数の詳細については、次の記事を参照してください。
エクセルのROW関数の使い方は|セルの行番号を検索する
MOD 関数は、数値の剰余を除算して検索する関数です。
ここでは、RAW関数を使用して抽出された行番号を3で除算し、残りを見つけます。
MOD 関数の詳細については、次の記事を参照してください。
エクセルMOD機能の使い方|除算の残りの部分を見つける
SUM 関数は、セル範囲内の数値の合計を検索する関数です。
ここでは、ROW、MOD、IF関数によって抽出された行の数値の合計を求める目的で使用されます。
SUM 関数の詳細については、次の記事を参照してください。
エクセルのSUM関数の使い方は|数値を合計 (加算) する
複数の関数を使用して 3 行ごとにデータを合計する方法については、以下を参照してください。
作業時間:2分
合計値を反映するセルを選択します (C11 など)。します。
3 行目のデータを合計するには、ROW、MOD、IF、および SUM の 4 つの関数を組み合わせて使用します。リンゴの価格は2行目、5行目、8行目にあるため、これらの行番号を3で割って残りの2にする関数を作成します。ここでは、数式バーで=SUM(ID(MOD(ROW(C2:C10),3)=2, C2:C10,0))します。
実行キーを押してください。バナナの価格は3行目、6行目、9行目にあるため、これらの行番号を3で割って残りを0にする関数を作成します。ここでは、数式バーで=SUM(ID(MOD(ROW(C2:C10),3)=0, C2:C10,0))します。
実行キーを押してください。みかんの価格は4行目、7行目、10行目にあるため、これらの行番号を3で割って残りを1にする関数を作成します。ここでは、数式バーで=SUM(ID(MOD(ROW(C2:C10),3)=1, C2:C10,0))します。
Ctrl + Enter キーを押します。りんご、バナナ、みかんの合計で、3列それぞれの合計金額を計算することができました。
View Comments
Hello There. I discovered your blog the use of msn. This is a really neatly written article.
I'll make sure to bookmark it and return to learn more of your helpful info.
Thank you for the post. I will certainly return.
If some one wishes expert view regarding blogging afterward i propose him/her to pay a
quick visit this webpage, Keep up the good job.
We're a group of volunteers and starting a new scheme in our community.
Your site offered us with valuable info to work on. You've done
a formidable job and our whole community will be thankful to you.
Hello, yup this piece of writing is in fact fastidious and I have learned
lot of things from it regarding blogging. thanks.
It's appropriate time to make some plans for the
longer term and it's time to be happy. I've learn this submit and if I may just I desire to suggest you some
attention-grabbing issues or suggestions. Perhaps you could write subsequent articles referring to this
article. I desire to read even more issues approximately it!
Viagra Viagra
Viagra Online Viagra Online
I have been exploring for a little bit for any high-quality articles or
weblog posts on this kind of area . Exploring in Yahoo I at last stumbled upon this
website. Reading this information So i am happy to exhibit that I've a very just right uncanny
feeling I came upon exactly what I needed. I so much for sure will make sure
to do not put out of your mind this site and give it
a glance regularly.
Poker OnlinePoker Online
Thanks a lot for the article post. Want more.