Excel - value of the last changed cell in row
I hope someone can help, I have a number of cells in a row which is filled automatically by another application, I need to read the last changed value in that row into one cell. I know I can create some VBA for is has to be done by formula for my application to work
So for example A1, A2 & A3 will change dynamically, B1 will have to equal the value of the cell that last changed.
microsoft-excel microsoft-excel-2010 microsoft-excel-2007 worksheet-function
add a comment |
I hope someone can help, I have a number of cells in a row which is filled automatically by another application, I need to read the last changed value in that row into one cell. I know I can create some VBA for is has to be done by formula for my application to work
So for example A1, A2 & A3 will change dynamically, B1 will have to equal the value of the cell that last changed.
microsoft-excel microsoft-excel-2010 microsoft-excel-2007 worksheet-function
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27
add a comment |
I hope someone can help, I have a number of cells in a row which is filled automatically by another application, I need to read the last changed value in that row into one cell. I know I can create some VBA for is has to be done by formula for my application to work
So for example A1, A2 & A3 will change dynamically, B1 will have to equal the value of the cell that last changed.
microsoft-excel microsoft-excel-2010 microsoft-excel-2007 worksheet-function
I hope someone can help, I have a number of cells in a row which is filled automatically by another application, I need to read the last changed value in that row into one cell. I know I can create some VBA for is has to be done by formula for my application to work
So for example A1, A2 & A3 will change dynamically, B1 will have to equal the value of the cell that last changed.
microsoft-excel microsoft-excel-2010 microsoft-excel-2007 worksheet-function
microsoft-excel microsoft-excel-2010 microsoft-excel-2007 worksheet-function
edited Sep 29 '13 at 17:40
Dave M
12.7k92838
12.7k92838
asked Sep 29 '13 at 16:49
user258404user258404
111
111
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27
add a comment |
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27
add a comment |
1 Answer
1
active
oldest
votes
With VBA, it's very easy. You can use Worksheet_Change to check for changes in a specific range(For example "A1:C10").
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("A1:C10")) Is Nothing Then
Sheet("NameOfYourSheet").Range("B1").Value = Target.value
End Sub
In this example the range A1 to C10 will be observed and if something changes inside this range, than the value of the cell B1 will be the value of the last changed cell.
But with just using a formula it's very hard/ nearly impossible to find the last value who has changed.
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
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%2fsuperuser.com%2fquestions%2f651965%2fexcel-value-of-the-last-changed-cell-in-row%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
With VBA, it's very easy. You can use Worksheet_Change to check for changes in a specific range(For example "A1:C10").
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("A1:C10")) Is Nothing Then
Sheet("NameOfYourSheet").Range("B1").Value = Target.value
End Sub
In this example the range A1 to C10 will be observed and if something changes inside this range, than the value of the cell B1 will be the value of the last changed cell.
But with just using a formula it's very hard/ nearly impossible to find the last value who has changed.
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
add a comment |
With VBA, it's very easy. You can use Worksheet_Change to check for changes in a specific range(For example "A1:C10").
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("A1:C10")) Is Nothing Then
Sheet("NameOfYourSheet").Range("B1").Value = Target.value
End Sub
In this example the range A1 to C10 will be observed and if something changes inside this range, than the value of the cell B1 will be the value of the last changed cell.
But with just using a formula it's very hard/ nearly impossible to find the last value who has changed.
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
add a comment |
With VBA, it's very easy. You can use Worksheet_Change to check for changes in a specific range(For example "A1:C10").
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("A1:C10")) Is Nothing Then
Sheet("NameOfYourSheet").Range("B1").Value = Target.value
End Sub
In this example the range A1 to C10 will be observed and if something changes inside this range, than the value of the cell B1 will be the value of the last changed cell.
But with just using a formula it's very hard/ nearly impossible to find the last value who has changed.
With VBA, it's very easy. You can use Worksheet_Change to check for changes in a specific range(For example "A1:C10").
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Target.Worksheet.Range("A1:C10")) Is Nothing Then
Sheet("NameOfYourSheet").Range("B1").Value = Target.value
End Sub
In this example the range A1 to C10 will be observed and if something changes inside this range, than the value of the cell B1 will be the value of the last changed cell.
But with just using a formula it's very hard/ nearly impossible to find the last value who has changed.
edited Sep 29 '13 at 17:32
answered Sep 29 '13 at 17:11
Christian WoerzChristian Woerz
6,37311534
6,37311534
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
add a comment |
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
Hi Chris, Thanks for the reply, Unfortunately I cant use VBA due to the application im using. It will have to be done using Excel formula :(
– user258404
Sep 29 '13 at 17:26
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
I'm sorry, I've overread the "formula" part. Sorry, that's the only way I know to do, what you want to do.
– Christian Woerz
Sep 29 '13 at 17:30
2
2
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Hi Chris, managed to finally figure out how my application will be using excel as a datasource and needs the one cell to trigger some events. Based on 3 input fields i used and index match to work out what the value should be =INDEX(V2:V4,MATCH(V1,U2:U4,0)
– user258404
Sep 29 '13 at 22:29
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
Nice. I would recommend you to answer your question and then accept your answer. Because Other people may have the same problem.
– Christian Woerz
Sep 30 '13 at 9:22
add a comment |
Thanks for contributing an answer to Super User!
- 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%2fsuperuser.com%2fquestions%2f651965%2fexcel-value-of-the-last-changed-cell-in-row%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
when you say last changed, would the row update out of order? For instance A3 might not be "last filled"?
– Raystafarian
Sep 30 '13 at 0:27