Check if row Value is increasing / decreasing
I would like excel to check if year to year sales is increasing/decreasing.
If it increase year to year then it could indicate "true" or something.
If for example one of the year is decrease i.e. lower than previous year then its a "false"
For example,
Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.
Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.
Not sure if there is any formula that can do this.
Your help is much appreciated.
Thanks.
excel excel-formula
add a comment |
I would like excel to check if year to year sales is increasing/decreasing.
If it increase year to year then it could indicate "true" or something.
If for example one of the year is decrease i.e. lower than previous year then its a "false"
For example,
Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.
Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.
Not sure if there is any formula that can do this.
Your help is much appreciated.
Thanks.
excel excel-formula
add a comment |
I would like excel to check if year to year sales is increasing/decreasing.
If it increase year to year then it could indicate "true" or something.
If for example one of the year is decrease i.e. lower than previous year then its a "false"
For example,
Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.
Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.
Not sure if there is any formula that can do this.
Your help is much appreciated.
Thanks.
excel excel-formula
I would like excel to check if year to year sales is increasing/decreasing.
If it increase year to year then it could indicate "true" or something.
If for example one of the year is decrease i.e. lower than previous year then its a "false"
For example,
Row 1, has the value with "1", "3", "7", "8" in the column. excel will indicate true.
Row 2, has the value with "1", "3", "2", "5" in the column. excel will indicate false as one of the year is lower than the previous year.
Not sure if there is any formula that can do this.
Your help is much appreciated.
Thanks.
excel excel-formula
excel excel-formula
asked Nov 14 '18 at 23:27
DerekDerek
81
81
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
One possibility might be to use SUMPRODUCT
and COUNT
.
If your data is in A1:D2
, try the following in E1
and drag down as needed. Note that this can be expanded to handle as many columns as needed.
=SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)
If you want to consider no change year-over-year as still increasing, change the >
to >=
.
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.
– BigBen
Nov 15 '18 at 0:43
add a comment |
Maybe something like:
=SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0
(courtesy TMS), provided no blank and no 0
after the start of the series.
Stable year-on-year counts as 'increasing'.
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
add a comment |
You can compare 1 column to another with an if statement. Something like this:
=if(b1>a1, "true","false")
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310298%2fcheck-if-row-value-is-increasing-decreasing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
One possibility might be to use SUMPRODUCT
and COUNT
.
If your data is in A1:D2
, try the following in E1
and drag down as needed. Note that this can be expanded to handle as many columns as needed.
=SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)
If you want to consider no change year-over-year as still increasing, change the >
to >=
.
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.
– BigBen
Nov 15 '18 at 0:43
add a comment |
One possibility might be to use SUMPRODUCT
and COUNT
.
If your data is in A1:D2
, try the following in E1
and drag down as needed. Note that this can be expanded to handle as many columns as needed.
=SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)
If you want to consider no change year-over-year as still increasing, change the >
to >=
.
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.
– BigBen
Nov 15 '18 at 0:43
add a comment |
One possibility might be to use SUMPRODUCT
and COUNT
.
If your data is in A1:D2
, try the following in E1
and drag down as needed. Note that this can be expanded to handle as many columns as needed.
=SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)
If you want to consider no change year-over-year as still increasing, change the >
to >=
.
One possibility might be to use SUMPRODUCT
and COUNT
.
If your data is in A1:D2
, try the following in E1
and drag down as needed. Note that this can be expanded to handle as many columns as needed.
=SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1)
If you want to consider no change year-over-year as still increasing, change the >
to >=
.
edited Nov 14 '18 at 23:57
answered Nov 14 '18 at 23:50
BigBenBigBen
6,7152719
6,7152719
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.
– BigBen
Nov 15 '18 at 0:43
add a comment |
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.
– BigBen
Nov 15 '18 at 0:43
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
Is it possible to change the formula so that it will take A1:to the last column with data? Many Thanks.
– Derek
Nov 15 '18 at 0:37
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,
=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.– BigBen
Nov 15 '18 at 0:43
You could widen the ranges out past where your data is, and add an additional condition that the cells not be blank. For example,
=SUMPRODUCT(--(B1:AL1>=A1:AK1)*(B1:AL1<>""))=COUNT(B1:AL1)
.– BigBen
Nov 15 '18 at 0:43
add a comment |
Maybe something like:
=SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0
(courtesy TMS), provided no blank and no 0
after the start of the series.
Stable year-on-year counts as 'increasing'.
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
add a comment |
Maybe something like:
=SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0
(courtesy TMS), provided no blank and no 0
after the start of the series.
Stable year-on-year counts as 'increasing'.
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
add a comment |
Maybe something like:
=SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0
(courtesy TMS), provided no blank and no 0
after the start of the series.
Stable year-on-year counts as 'increasing'.
Maybe something like:
=SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0
(courtesy TMS), provided no blank and no 0
after the start of the series.
Stable year-on-year counts as 'increasing'.
answered Nov 14 '18 at 23:51
pnutspnuts
49k764101
49k764101
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
add a comment |
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
Thanks it works too. Could I ask what it the difference between =SUMPRODUCT(--(B1:J1<>0),--(B1:J1<A1:I1))=0 and =SUMPRODUCT(--(B1:D1>A1:C1))=COUNT(B1:D1).
– Derek
Nov 15 '18 at 0:27
add a comment |
You can compare 1 column to another with an if statement. Something like this:
=if(b1>a1, "true","false")
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
add a comment |
You can compare 1 column to another with an if statement. Something like this:
=if(b1>a1, "true","false")
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
add a comment |
You can compare 1 column to another with an if statement. Something like this:
=if(b1>a1, "true","false")
You can compare 1 column to another with an if statement. Something like this:
=if(b1>a1, "true","false")
answered Nov 14 '18 at 23:40
merski007merski007
11
11
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
add a comment |
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
1
1
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Drop the if statement
– urdearboy
Nov 14 '18 at 23:42
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
Thanks. what if I want to do it for the whole rows of values? from a1:g1 if any of the column value is smaller than the previous i.e. if b1>a1, it will show false
– Derek
Nov 14 '18 at 23:50
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310298%2fcheck-if-row-value-is-increasing-decreasing%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown