ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to embed ^{1,2,3} in TREND Function in VBA (https://www.excelbanter.com/excel-programming/375710-how-embed-%5E%7B1-2-3%7D-trend-function-vba.html)

Tetsuya Oguma

How to embed ^{1,2,3} in TREND Function in VBA
 
Hi all,

I can write the TREND function formula below in Excel cell;

=TREND(A1:A10,B1:B10^{1,2,3},C1^{1,2,3},TRUE)

How can I do this in Application.Worksheetfunction.Trend()?

I am getting an error after my try below...

Application.WorksheetFunction.Trend(range(A1:A10), range(B1:B10)^{1,2,3},
range("C4")^{1,2,3},TRUE)

Thanks in advance,

Tetsuya Oguma

Tom Ogilvy

How to embed ^{1,2,3} in TREND Function in VBA
 
Evaluate("TREND(A1:A10,B1:B10^{1,2,3},C1^{1,2,3},T RUE)")

--
Regards,
Tom Ogilvy



"Tetsuya Oguma" wrote:

Hi all,

I can write the TREND function formula below in Excel cell;

=TREND(A1:A10,B1:B10^{1,2,3},C1^{1,2,3},TRUE)

How can I do this in Application.Worksheetfunction.Trend()?

I am getting an error after my try below...

Application.WorksheetFunction.Trend(range(A1:A10), range(B1:B10)^{1,2,3},
range("C4")^{1,2,3},TRUE)

Thanks in advance,

Tetsuya Oguma



All times are GMT +1. The time now is 09:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com