range.formulas assignment is not updating the Formula Bar in Excel add-in The 2019 Stack Overflow Developer Survey Results Are InHow can I create an Excel compatible Spreadsheets on the server side in C#?Have one cell represent a cell rangeMacros working fine on Windows but fails on MacOptimization and workarounds for loading and writing large filesDisable the automatic conversion to DateOffice JS Excel - How to get the cell name instead of the value?GeneralException in Excel Add-in with Excel OnlineAnyway to obtain cell Precedents and Dependents in Excel Javascript API?Making Cell Appear When Calling Range.Select() in Office.js APISelect a discontiguous range

What effect does the “loading” weapon property have in practical terms?

CiviEvent: Public link for events of a specific type

Why is my p-value correlated to difference between means in two sample tests?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

What does "sndry explns" mean in one of the Hitchhiker's guide books?

Is "plugging out" electronic devices an American expression?

How can I create a character who can assume the widest possible range of creature sizes?

Where does the "burst of radiance" from Holy Weapon originate?

Does it makes sense to buy a new cycle to learn riding?

Why did Howard Stark use all the Vibranium they had on a prototype shield?

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

How are circuits which use complex ICs normally simulated?

Is three citations per paragraph excessive for undergraduate research paper?

What does Linus Torvalds mean when he says that Git "never ever" tracks a file?

"What time...?" or "At what time...?" - what is more grammatically correct?

How to make payment on the internet without leaving a money trail?

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?

Understanding the implication of what "well-defined" means for the operation in quotient group

What are the motivations for publishing new editions of an existing textbook, beyond new discoveries in a field?

What is the use of option -o in the useradd command?

The difference between dialogue marks

I looked up a future colleague on LinkedIn before I started a job. I told my colleague about it and he seemed surprised. Should I apologize?

Does duplicating a spell with Wish count as casting that spell?

Are there any other methods to apply to solving simultaneous equations?



range.formulas assignment is not updating the Formula Bar in Excel add-in



The 2019 Stack Overflow Developer Survey Results Are InHow can I create an Excel compatible Spreadsheets on the server side in C#?Have one cell represent a cell rangeMacros working fine on Windows but fails on MacOptimization and workarounds for loading and writing large filesDisable the automatic conversion to DateOffice JS Excel - How to get the cell name instead of the value?GeneralException in Excel Add-in with Excel OnlineAnyway to obtain cell Precedents and Dependents in Excel Javascript API?Making Cell Appear When Calling Range.Select() in Office.js APISelect a discontiguous range



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I'm in an Excel web Add-in (office-js), in a .xlsx file



In Range C3: C6 there are formulas that in the same type VLOOKUP



Snapshot of before code execution



And In index.js my code is



let data=[
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
]
range.formulasR1C1 = data; // Here range is C3: C6
range.select();
return ctx.sync();



Before the code above runs, the range C3: C6 is selected, it looks like the first picture.



So I expect after the code execution, the formula in the Formula Bar to update itself automatically.



What I've hoped for - an updated formula bar



But that doesn't happen and it fails to update the Formula bar.



What I'm seeing



Only if I select another cell or range, and then, re-select the Range C3: C6, the formulas in Formula Bar shows the Right Formula.



Can Anyone tell me what should I do? thx!










share|improve this question
























  • It looks like you're assigning formulas before selecting the range - perhaps that's it?

    – Mavi Domates
    Mar 22 at 8:13






  • 1





    @MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

    – 国贵棠
    Mar 22 at 13:10











  • Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

    – Mavi Domates
    Mar 22 at 13:15











  • Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

    – Mavi Domates
    Mar 22 at 13:22











  • Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

    – 国贵棠
    Mar 23 at 12:52

















1















I'm in an Excel web Add-in (office-js), in a .xlsx file



In Range C3: C6 there are formulas that in the same type VLOOKUP



Snapshot of before code execution



And In index.js my code is



let data=[
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
]
range.formulasR1C1 = data; // Here range is C3: C6
range.select();
return ctx.sync();



Before the code above runs, the range C3: C6 is selected, it looks like the first picture.



So I expect after the code execution, the formula in the Formula Bar to update itself automatically.



What I've hoped for - an updated formula bar



But that doesn't happen and it fails to update the Formula bar.



What I'm seeing



Only if I select another cell or range, and then, re-select the Range C3: C6, the formulas in Formula Bar shows the Right Formula.



Can Anyone tell me what should I do? thx!










share|improve this question
























  • It looks like you're assigning formulas before selecting the range - perhaps that's it?

    – Mavi Domates
    Mar 22 at 8:13






  • 1





    @MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

    – 国贵棠
    Mar 22 at 13:10











  • Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

    – Mavi Domates
    Mar 22 at 13:15











  • Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

    – Mavi Domates
    Mar 22 at 13:22











  • Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

    – 国贵棠
    Mar 23 at 12:52













1












1








1


2






I'm in an Excel web Add-in (office-js), in a .xlsx file



In Range C3: C6 there are formulas that in the same type VLOOKUP



Snapshot of before code execution



And In index.js my code is



let data=[
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
]
range.formulasR1C1 = data; // Here range is C3: C6
range.select();
return ctx.sync();



Before the code above runs, the range C3: C6 is selected, it looks like the first picture.



So I expect after the code execution, the formula in the Formula Bar to update itself automatically.



What I've hoped for - an updated formula bar



But that doesn't happen and it fails to update the Formula bar.



What I'm seeing



Only if I select another cell or range, and then, re-select the Range C3: C6, the formulas in Formula Bar shows the Right Formula.



Can Anyone tell me what should I do? thx!










share|improve this question
















I'm in an Excel web Add-in (office-js), in a .xlsx file



In Range C3: C6 there are formulas that in the same type VLOOKUP



Snapshot of before code execution



And In index.js my code is



let data=[
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
["=INDEX(R2C11:R9C11,MATCH(R[0]C2,R2C10:R9C10,0))"],
]
range.formulasR1C1 = data; // Here range is C3: C6
range.select();
return ctx.sync();



Before the code above runs, the range C3: C6 is selected, it looks like the first picture.



So I expect after the code execution, the formula in the Formula Bar to update itself automatically.



What I've hoped for - an updated formula bar



But that doesn't happen and it fails to update the Formula bar.



What I'm seeing



Only if I select another cell or range, and then, re-select the Range C3: C6, the formulas in Formula Bar shows the Right Formula.



Can Anyone tell me what should I do? thx!







ms-office office-js office-app






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 22 at 14:39









Mavi Domates

1,81921022




1,81921022










asked Mar 22 at 2:48









国贵棠国贵棠

62




62












  • It looks like you're assigning formulas before selecting the range - perhaps that's it?

    – Mavi Domates
    Mar 22 at 8:13






  • 1





    @MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

    – 国贵棠
    Mar 22 at 13:10











  • Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

    – Mavi Domates
    Mar 22 at 13:15











  • Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

    – Mavi Domates
    Mar 22 at 13:22











  • Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

    – 国贵棠
    Mar 23 at 12:52

















  • It looks like you're assigning formulas before selecting the range - perhaps that's it?

    – Mavi Domates
    Mar 22 at 8:13






  • 1





    @MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

    – 国贵棠
    Mar 22 at 13:10











  • Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

    – Mavi Domates
    Mar 22 at 13:15











  • Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

    – Mavi Domates
    Mar 22 at 13:22











  • Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

    – 国贵棠
    Mar 23 at 12:52
















It looks like you're assigning formulas before selecting the range - perhaps that's it?

– Mavi Domates
Mar 22 at 8:13





It looks like you're assigning formulas before selecting the range - perhaps that's it?

– Mavi Domates
Mar 22 at 8:13




1




1





@MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

– 国贵棠
Mar 22 at 13:10





@MaviDomates Thank u for replying. I have tried the order that Firstly, select the range, and Secondly assign the formulas, but No luck, still Doesn't update the Formula Bar Automatically.

– 国贵棠
Mar 22 at 13:10













Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

– Mavi Domates
Mar 22 at 13:15





Actually here's an interesting thought. After the assignment, if you read the contents of the cells again (in the code) do you see what you've updated / or what's there before the update. I'm trying to understand if it's writing but not updating the UI

– Mavi Domates
Mar 22 at 13:15













Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

– Mavi Domates
Mar 22 at 13:22





Oh - the last bit I've re-read. So it is updating the formulas assigned to those cells, just not the formula bar! Interesting. So there's probably a bug in terms of updating the display. Can you try (programmatically) selecting another group of cells and then re-selecting the same cells which you changed the formula? Does that refresh?

– Mavi Domates
Mar 22 at 13:22













Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

– 国贵棠
Mar 23 at 12:52





Yes. After assigning the formulas, If I select another group of cells (or range) and then re-select the same cells. The Formula Bar shows the right formulas as we expect. I also think this is a bug.

– 国贵棠
Mar 23 at 12:52












0






active

oldest

votes












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
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292189%2frange-formulas-assignment-is-not-updating-the-formula-bar-in-excel-add-in%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































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.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55292189%2frange-formulas-assignment-is-not-updating-the-formula-bar-in-excel-add-in%23new-answer', 'question_page');

);

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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript