Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all 88178 articles
Browse latest View live

How can I do =INDEX(_, MATCH(_, _,0)) of Excel In Stata?

$
0
0

I would like to use the same concept as =INDEX(_,MATCH(_,_,0)) of Excel in Stata 12, exclusively using Stata programming.

Is there a way to match one value with a column (say variable A), and then give another column (say variable B) as the output?


VBA define Row Height - Optimization

$
0
0

I´ve created the code below which defines the height of a range of rows while checking if they are empty or not.

It is working as intended, however it´s surprisingly slow. For context the variable length has 64 rows and it´s taking approximately 15s to run.

Does anyone know how I could optimize this code?

Thanks

sub linhasdim()' define a altura das linhas da folha plannerApplication.ScreenUpdating = FalseDim i As Integer, n As IntegerSheets(1).Activate ' activa a sheet(1)Lastrow = Cells(Rows.Count, "O").End(xlUp).Row ' guarda o indice da ultima linha com conteudo da coluna O. Mesmo havendo vazios identifca a ultima linhaLength = Range(Range("O6"), Range("O"& Lastrow)).Rows.Count ' dimensão da coluna O ate a ultima celula com conteudo começando na O6For i = 1 To Length ' loop na coluna O    If Range("O6").Offset(i, 0).Value <> "" Then ' se célula O(i) não tem vazio altura = 20     Range("O6").Offset(i, 0).RowHeight = 20    Else ' se for vazio altura =3    Range("O6").Offset(i, 0).RowHeight = 3    End IfNext iEnd Sub

VBA loop where order doesn't matter

$
0
0

I'm trying to run a loop on 3 variables, where order doesn't matter.

The code I've tried first is the following, where nx runs through the rows, and limit is the last row of my database:

Do While n3 <= limit    Do While n2 <= limit       Do While n1 <= limit          Call Output          n1 = n1 + 1       Loop       Call Output       n2 = n2 + 1       n1 = n0    Loop    Call Output                             n3 = n3 + 1    n2 = n0    n1 = n0Loop

This allows me to test every possibility, but it does also repeat the same combination several times, which increases the runtime. This will make the code unusable if I plan on testing, let's say, 20 variables.

Any tips on how to optimize this loop?

Thank you.

Conditional formatting where values in one column are equal but second column is not

$
0
0

Among my transactional data set I have two columns, one for item and the the price it was sold at. Using conditional formatting, how can I highlight all prices for the same item when the prices are different?

I've pondered using a vlookup after a match, but I'm afraid that will generate a circular reference error. The outcome would essentially look like what I've done with the below HTML:

<style type="text/css">.tg  {border-collapse:collapse;border-spacing:0;}.tg td{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;  overflow:hidden;padding:10px 5px;word-break:normal;}.tg th{border-color:black;border-style:solid;border-width:1px;font-family:Arial, sans-serif;font-size:14px;  font-weight:normal;overflow:hidden;padding:10px 5px;word-break:normal;}.tg .tg-kusv{background-color:#fffe65;border-color:inherit;text-align:left;vertical-align:top}.tg .tg-0pky{border-color:inherit;text-align:left;vertical-align:top}.tg .tg-c6of{background-color:#ffffff;border-color:inherit;text-align:left;vertical-align:top}</style><table class="tg"><thead><tr><th class="tg-0pky">Apple</th><th class="tg-0pky">3</th></tr></thead><tbody><tr><td class="tg-0pky">Apple</td><td class="tg-0pky">3</td></tr><tr><td class="tg-0pky">Apple</td><td class="tg-0pky">3</td></tr><tr><td class="tg-0pky">Banana</td><td class="tg-kusv">2</td></tr><tr><td class="tg-0pky">Banana</td><td class="tg-kusv">2</td></tr><tr><td class="tg-0pky">Banana</td><td class="tg-kusv">4</td></tr><tr><td class="tg-0pky">Kiwi</td><td class="tg-c6of">1</td></tr><tr><td class="tg-0pky">Kiwi</td><td class="tg-c6of">1</td></tr><tr><td class="tg-0pky">Orange</td><td class="tg-kusv">1</td></tr><tr><td class="tg-0pky">Orange</td><td class="tg-kusv">5</td></tr><tr><td class="tg-0pky">Orange</td><td class="tg-kusv">7</td></tr></tbody></table>

How can I create a loop to add months into a table

$
0
0

I would like to build a dynamic calender in Excel using VBA.

How can I create a loop to add months into a table, and under each month either four or five columns based on each the number of weeks of each month.

Something like this:enter image description here

This is what i have done until now.

Sub CreateCalendar()Dim lMonth As LongDim strMonth As StringDim rStart As RangeDim strAddress As StringDim rCell As RangeDim lDays As LongDim dDate As Date'Sheets("GUI").SelectActiveWindow.DisplayGridlines = FalseWith Cells .ColumnWidth = 6# .Font.Size = 8End With'Create the Month headingsFor lMonth = 1 To 12      strMonth = "January"      Set rStart = Range("A1")      strMonth = "February"      Set rStart = Range("E1")      strMonth = "Mars"      Set rStart = Range("I1")      strMonth = "April"      Set rStart = Range("M1")      strMonth = "May"      Set rStart = Range("E1")      strMonth = "June"      Set rStart = Range("I1")      strMonth = "July"      Set rStart = Range("M1")      strMonth = "August"      Set rStart = Range("E1")      strMonth = "September"      Set rStart = Range("I1")      strMonth = "October"      Set rStart = Range("M1")      strMonth = "November"      Set rStart = Range("I1")      strMonth = "December"      Set rStart = Range("M1")'Merge, AutoFill and align months' With rStart' .Value = strMonth' .HorizontalAlignment = xlCenter'.Interior.ColorIndex = 2'.Font.Bold = True' With .Range("A1:G1")' .Merge'.BorderAround LineStyle:=xlContinuous'End With'.Range("A1:G1").AutoFill Destination:=.Range("A1:U1")'End WithNext lMonth

Any help I would really appreciate it.

ERROR_MESSAGE_MAIN ERROR_MESSAGE_REASON on iPad and Iphone in .Net Application

$
0
0

I am using windows.open('url') to download excel from c# web api. It is getting downloaded in every browsers. But for Ipad and Iphone, the file gets download but I get following error on screen

ERROR_MESSAGE_MAIN ERROR_MESSAGE_REASON

I am using the following code to return the excel data which is stored in memory stream

HttpResponseMessage result = null;result = Request.CreateResponse(HttpStatusCode.OK);result.Content = new StreamContent(mem);result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment"){    FileName = "myexcel.xlsx"};return result;

I have seen the same question which is in PHP. I tried checking for the same but he was giving wrong content type. Url:- ERROR_MESSAGE_MAIN ERROR_MESSAGE_REASON on iPad and iPhone Safari

I checked for the same issue on other places and tried below code changes. I added Desktop variable so that on mobile,I can add another stream as suggested. But it doesn't work.

if (isDesktop){    result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");} else{    result.Content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream");}result.Content.Headers.ContentDisposition = new ContentDispositionHeaderValue("attachment"){    FileName = "myexcel.xlsx"};return result;

edited - I am using ClosedXml for creating excel. Github link for Closed XMl issue - https://github.com/ClosedXML/ClosedXML/issues/279

How to reiterate the set of python functions

$
0
0

In Excel, I have set of strings in each column: like:

Column1- Column6= STR10110.90.9

Column7-Column12=STR10220.90.9

And goes on..

Now for the column 1-6 , I have written python code to read each cell from Excel & do hex conversion as:

C1- STR1--> string into hex --> 53545231

C2- 0--> into hex --> 30

C3- 1 --> float into hex --> 0000803f

C4-1 --> float into hex --> 0000803f

C5-0.9 --> float into hex --> 6666663f

C6- 0.9 --> float into hex -->6666663f

Now the problem is , once I reach the column 7, I need to check if the cell is empty or not. If data is available , I need to reiterate the same set of hex conversion for C7-C12 & again I need to check C13 for data, if so reiterate the same set of hex conversion function.

  1. How to check if the cell is empty or not.
  2. And how to reiterate the same set of functions. Like again goto top/ loop . Any helpThanks in advance.

Different display of blank values for two identical Excel charts

$
0
0

I have two charts in my Excel file with the same series and the same options for displaying blank values, but the views of charts are different. Is there a way to make the left chart the same as the right chart?enter image description here

Excel file is here


Select the highest/lowest n values from a sorted column using VBA

$
0
0

I have a table with 12 columns (A:J) with the 11th column containing the user score and the 12th column containing the user rank. I have created a separate sub to sort the data as necessary. I am attempting to create a new sub to run after the sorting sub that would select the highest and lowest n (eg. 3) values and then paste the associated rows in a separate sheet in the same workbook. A sample of the dataset is added below:

>ID number  Name  Location  Region  Zone  Department  Designation  Enrolled   Score  Rank >123    sample1     z       a        i      L         AGM           YES       5     7 >234    sample2     y       b       ii      L         GM            YES       11    6 >345    sample3     x       a       i       R         AGM           YES       14    5 >456    sample4     w       d       iv      K         CEO           YES       18    4>567    sample5     v       e       iii     G         CFO           YES       18    4>678    sample6     u       e       iii     G         MT            YES       24    2>789    sample7     t       g       iii     S         MT            YES       31    1 >890    sample8     n       d       iv      S         CIO           YES       24    2>901    sample9     x       a       i       SA        CDO           YES       21    3

Sample photo

I'm a newbie in vba and programming, and any help would be appreciated.Similar questions have been answered here before, but the associated code and explanations do not guide me to the desired results.

How to get four coordinates based on four end points [closed]

$
0
0

Let's say in a graph I have four endpoints of four corners as

C1(0,0) C2(0,9) C3(9,9) C4(9,0).

Is it possible to get four coordinates( distance from four endpoints), when a target is somewhere in middle of four endpoints.

Like if I place target at:

(7,1) with respect to C1 end point.

Added I should get as:(2,1) from C4 & similarly from C2 & C3 as well.

Thanks in advance.

Web-scraping with VBA: How do I get my code to automatically move to the next column each time it is run?

$
0
0

I have been able to build a preliminary web scraper using VBA, but my problem is that it will only paste the contents in specific areas/cells that I have selected in Excel. I would like to run this code daily, and each time it runs, have it paste the contents into the next column in Excel (next column should be empty). I am relatively new to VBA and programming in general, just as a disclaimer! Also, I can't use any other software/programming language for the web scraper.

Code snippet:

Set doc = appIE.DocumentSet rowdata= doc.getElementByID("")If Not rowdata Is Nothing ThenSet clip = New DataObjectclip.SetText ""& row data.outerHTML & ""End Ifclip.PutInClipboardSheet1.SelectSheet1.Range("A9").SelectSheet1.PasteSpecial "Unicode Text"Range("A9:B12").SelectSelection.Delete Shift:=xlUpRange("A9").SelectActiveCell.FormulaR1C1 = ""Range ("B10").Select

How to find the highest value of the day for each session in Excel?

$
0
0

How can I find the highest value of the day for each session?

Night Session is between 18.00 to 09.30 (this is from one day to the following day)Day session is between 09.30 - 16.15 (this is on the same day)

I have read about MAXIFS function:https://support.google.com/docs/answer/7013817?hl=en-GB

But I don't know how to code:

Find highest value between time 18.00 from previous day and 09.30 the current day...

Time    High    Low Open    Close   Volume  High of the Day Low of the Day1/5/2020 0:15:00    2864,25 2859,25 2862,75 2861    3041        1/5/2020 0:45:00    2866,75 2860,25 2861    2864,75 3227        1/5/2020 1:15:00    2866,25 2860,75 2864,75 2862,5  2137        1/5/2020 1:45:00    2866    2853,75 2862,5  2856    4624        1/5/2020 2:15:00    2861,5  2850,25 2856    2854    9587        1/5/2020 2:45:00    2855,25 2846,5  2854    2846,75 8691        1/5/2020 3:15:00    2847,5  2836,5  2847    2841,75 12575       1/5/2020 3:45:00    2843,75 2830,75 2841,75 2833,5  16739       1/5/2020 4:15:00    2842,25 2832,75 2833,25 2842    15641       1/5/2020 4:45:00    2849,5  2840    2842    2845,25 13677       1/5/2020 5:15:00    2850,75 2842,25 2845,25 2847,25 10265       1/5/2020 5:45:00    2847,25 2841,25 2847    2843,75 6425        1/5/2020 6:15:00    2848,75 2841,25 2843,75 2848,5  7384        1/5/2020 6:45:00    2851    2846    2848,5  2847,25 7615        1/5/2020 7:15:00    2849,5  2842    2847,25 2843,5  10551       1/5/2020 7:45:00    2845,25 2836,25 2843,5  2844    13411       1/5/2020 8:15:00    2847,75 2840,25 2844    2842,75 16715       1/5/2020 8:45:00    2844,75 2838,75 2842,5  2841,5  12881       1/5/2020 9:15:00    2847,75 2839,5  2841,75 2847,5  18611       1/5/2020 9:30:00    2854    2846,75 2847,5  2850,25 18720       1/5/2020 10:00:00   2857,75 2840,75 2850,25 2847,5  147578      1/5/2020 10:30:00   2856,5  2838,25 2847,5  2847,5  143251      1/5/2020 11:00:00   2853,75 2842,25 2847,5  2847,75 84208       1/5/2020 11:30:00   2847,75 2835,25 2847,75 2835,5  64264       1/5/2020 12:00:00   2836,25 2820,75 2835,5  2823,75 97264       1/5/2020 12:30:00   2826,75 2816,25 2823,5  2820    94263       1/5/2020 13:00:00   2823,5  2812,75 2820    2819,5  73351       1/5/2020 13:30:00   2824    2812,25 2819,5  2818    59251       1/5/2020 14:00:00   2820,75 2811,75 2818    2816    58513       1/5/2020 14:30:00   2824,75 2812    2815,75 2823,5  61097       1/5/2020 15:00:00   2824    2816,75 2823,75 2822    46790       1/5/2020 15:30:00   2830,5  2819    2822    2823,75 76846       1/5/2020 16:00:00   2826    2812,75 2823,75 2823,75 207138      1/5/2020 16:15:00   2827,25 2821    2824    2821,25 56684       3/5/2020 18:30:00   2797    2781,25 2789    2784,25 31974       3/5/2020 19:00:00   2787,25 2776,25 2784,25 2781    12576       3/5/2020 19:30:00   2786    2776,25 2781,25 2784,25 10187       3/5/2020 20:00:00   2784,5  2773    2784,5  2777,25 10004       3/5/2020 20:30:00   2783,75 2777,25 2777,25 2779,25 11394       3/5/2020 21:00:00   2783    2771    2779,25 2775,75 11334       3/5/2020 21:30:00   2789,75 2775,5  2775,75 2789,25 13250       3/5/2020 22:00:00   2795,25 2785,5  2789,25 2793,75 11736       3/5/2020 22:30:00   2793,5  2788    2793,5  2793    5884        3/5/2020 23:00:00   2796,75 2791,75 2792,75 2795    4820        3/5/2020 23:30:00   2803,5  2795    2795    2798,75 7860        4/5/2020 0:00:00    2806,5  2798    2798,5  2806,5  5127        4/5/2020 0:30:00    2808    2796,5  2806,5  2796,5  4867        4/5/2020 1:00:00    2800,75 2795    2796,5  2798,5  4357        4/5/2020 1:30:00    2803    2795,5  2798,5  2799,75 5682        4/5/2020 2:00:00    2799,75 2792,25 2799,5  2794,5  5935        4/5/2020 2:30:00    2805,25 2792    2794,5  2801,5  13373       4/5/2020 3:00:00    2814,5  2800    2801,25 2809,75 13251       4/5/2020 3:30:00    2812,75 2795,5  2809,75 2798    21247       4/5/2020 4:00:00    2807    2797,25 2797,75 2800,75 21610       4/5/2020 4:30:00    2808,25 2794,5  2801    2799,25 19936       4/5/2020 5:00:00    2799,5  2793    2799,25 2794,5  18011       4/5/2020 5:30:00    2795    2783,5  2794,25 2784,25 19423       4/5/2020 6:00:00    2796,25 2783,75 2784    2796,25 14999       4/5/2020 6:30:00    2802    2792,75 2796    2798,25 16085       4/5/2020 7:00:00    2800,75 2794,25 2798,25 2796,5  12949       4/5/2020 7:30:00    2800    2793,25 2796,5  2797,75 11169       4/5/2020 8:00:00    2805,5  2797,5  2797,75 2800    17097       4/5/2020 8:30:00    2807,25 2796,5  2800    2806,5  22897       4/5/2020 9:00:00    2808    2800    2806,5  2801,5  26588       4/5/2020 9:30:00    2807    2797,25 2801,25 2804,25 38232       4/5/2020 10:00:00   2806,75 2788,5  2804,25 2802,5  149710      4/5/2020 10:30:00   2817,75 2801,25 2802,25 2808    108149      4/5/2020 11:00:00   2812,25 2803    2807,75 2803,75 85289       4/5/2020 11:30:00   2814    2801,75 2803,75 2806,5  72006       4/5/2020 12:00:00   2815,5  2804    2806,5  2810,75 65144       4/5/2020 12:30:00   2816    2809,25 2811    2815,25 37964       4/5/2020 13:00:00   2817,25 2805,75 2815,5  2807,5  41952       4/5/2020 13:30:00   2809,5  2798,5  2807,5  2804,5  53301       4/5/2020 14:00:00   2811,5  2804,25 2804,25 2810,75 32541       4/5/2020 14:30:00   2814,75 2808,5  2810,75 2811,75 38114       4/5/2020 15:00:00   2822,5  2807,25 2811,75 2821,25 77435       4/5/2020 15:30:00   2830,5  2819    2821,25 2829,25 66760       4/5/2020 16:00:00   2835,75 2827,5  2829    2833,5  141731      4/5/2020 16:15:00   2833,5  2824    2833,25 2825,25 46808       4/5/2020 16:45:00   2827    2823,25 2826,25 2826    4724        4/5/2020 17:15:00   2828,25 2826    2826    2827,5  2005        4/5/2020 18:15:00   2831    2824,5  2827    2829,25 2632        4/5/2020 18:45:00   2833,75 2829,25 2829,5  2829,75 3116        4/5/2020 19:15:00   2830,25 2825,5  2830    2828,75 3005        4/5/2020 19:45:00   2830    2827    2829    2829,25 1593        4/5/2020 20:15:00   2837,75 2827,75 2829,5  2836    4976        4/5/2020 20:45:00   2837    2831,25 2836    2836    4144        4/5/2020 21:15:00   2844    2835,5  2836    2840,75 7236        4/5/2020 21:45:00   2846,5  2838,75 2841    2845,5  6021        4/5/2020 22:15:00   2848    2843,5  2845,75 2846    5023        4/5/2020 22:45:00   2848    2843,75 2845,75 2844    3776        4/5/2020 23:15:00   2845    2841,75 2844    2843    3423        4/5/2020 23:45:00   2845,5  2840,25 2843    2842    2935        5/5/2020 0:15:00    2847,25 2841,5  2842    2847,25 2181        5/5/2020 0:45:00    2847,5  2843    2847    2846,25 2072        5/5/2020 1:15:00    2852    2845,5  2846,25 2848,25 5176        5/5/2020 1:45:00    2849,5  2846,75 2848,25 2848    1833        5/5/2020 2:15:00    2852,5  2845    2848,25 2851,25 5633        5/5/2020 2:45:00    2851,25 2846    2851,25 2847    4947        5/5/2020 3:15:00    2854    2846    2847    2851,75 14396       5/5/2020 3:45:00    2863,75 2849,75 2852    2861,25 20664       5/5/2020 4:15:00    2865    2858,25 2861,25 2860,75 14717       5/5/2020 4:45:00    2864    2845,25 2860,75 2848    25575       5/5/2020 5:15:00    2848,5  2832,5  2847,75 2842    30640       5/5/2020 5:45:00    2849,75 2839,5  2842    2849    15625       5/5/2020 6:15:00    2856,5  2846,5  2849    2851    14150       

source data:[https://docs.google.com/spreadsheets/d/1MThctCQSxBsd94WK-yEeb8evTRq2FUv7r5i5TATneNo/edit?usp=sharing][1]

converting binary/octect file into excel file

How to read excel data in Laravel?

$
0
0

I am trying to read data from excel and import into my database. i tried reading it usingdd() but am seeing some horrible things which isn't the actual data in the excel. dont know if there is something i have to do. I need help.

this is what i have done so far

        public function import_results(Request $request)        {           $this->validate($request,['file' => 'required|mimes:csv,xls,xlsx'           ]);            $file = file($request->file->getRealPath());            dd($file);       }

afterwards this is what i see which isn't the data in the excel Sheet

enter image description here

How to use a variable used as a column tracker in a formula

$
0
0

In a code using a loop, I use a variable as a column tracker. When some conditions are met, I want to insert a formula in a specific cell, using this variable as the column of one of the cell mentioned in the formula. I created a very similar code, but the variable "m" was a row tracker instead of a column tracker and I was successfully using the following line:

If Cells(8, n).Value = "F" Then Cells(n, 4).Formula = "=AM4-sum(D10:D"& m & ")"

I want to use this m as a column and not as a row, here is a unsuccessful attempt:

If Cells(8, n).Value = "F" Then Cells(11, n).Formula = "=AM4-SUM(Range(Cells(11, 7), Cells(11, "& m & ")))"

Can someone help me about the synthax of the 2d line in order to make it work?

Thanks in advance!


Securing VBA or moving into VB.NET, C#, other?

$
0
0

I consider myself to be quite a competent Excel VBA programmer. Over a few years of my professional finance career I created quite a lot of useful procedures (UDF's, some small or big apps with multiple user-forms and a lot of small, easy to do stuff).

I decided that I will take a step forward and try to monetize my work. I have looked at VBA obfuscators, VBA compilers and stuff like that but sadly, the protection from obfuscators seems to be weak (at least I think so, I cannot comment as I know only VBA language, I am not master in computer science) or in case of compilators, compilation modifies my code so much, that 1/3 of it is not working properly (I have tried to debug it, but no matter what I do it does not work).

I checked the amount of code I have and it is about 13-14 thousand lines.Now - is it worth or even possible for me to translate all that stuff into VB.NET or C# starting from scratch?I have no experience with any of them, I have programmed only in VBA. I have been reading and it seems like it is nearly impossible to convert and re-write the code due to differences in user-forms, no UDF's, which I use in my subroutines and stuff like that. If it is possible, can someone point me in the right direction, what would be a better choice?

I am quite lost at the moment, as I have no experience and I know no developer who could "guide" me into this or that direction. What would be a good way to "translate" my VBA code and make a working app from it?I know it is not easy, but if it will take me a few months of after-hours work, I will do it. The thing is that I do not want to completely waste the time and I want to do it right.

Thank you kindly for all ideas and your help. I hope my message is not completely off-topic.

Looping through XML Files, Parsing Data, and Writing to Dataframe and XLSX File

$
0
0

thanks in advance for your help.

I have a script that loops through a directory of xls files (the files are truly XML files), parses the XML data, and writes to XLS. The script works as is.

What I want to do:

  1. Write the files to a new directory, instead of the same directory
  2. Write each file as '.xlsx' instead of '.xls'
  3. Write each to dataframe, so that I can later if I want, append each of those dataframes into one excel file, in one sheet

Below is the code that works. It writes to the same directory it pulls files from, and creates XLS files.

import osimport pandas as pdimport xml.etree.cElementTree as ETimport globns = {"doc": "urn:schemas-microsoft-com:office:spreadsheet"}for filepath in glob.iglob(r'...Documents\Python\Current_Period\*.xls'):    print(filepath)    tree = ET.parse(filepath)    root = tree.getroot()    def getvalueofnode(node):""" return node text or None """        return node.text if node is not None else None    def main():""" main """        parsed_xml = tree        data = []        for i, node in enumerate(root.findall('.//doc:Row', ns)):            if i > 6:                data.append({'Account': getvalueofnode(node.find('doc:Cell[1]/doc:Data', ns)),'Total': getvalueofnode(node.find('doc:Cell[2]/doc:Data', ns))})        return(pd.DataFrame(data))    output_df = main()    # print = output_df     output_df.to_excel(filepath +'.xls', index=False)

Line Chart in Excel or Tableau having markers on that line chart with another column other than Data in X or Y axis

$
0
0

I have three columns GDP, TFP and Country. I want to plot a Line chart where TFP will be on Y-Axis and GDP on X-axis. And a line chart having markers on that representing the Country. The markers of corresponding country appear on line (Line Chart) where GDP and TFP intersect. Is there any way to plot either through Excel or Tableau?

How to get months in German in VBA?

$
0
0

I need my code to create a folder named with german month: not 05 Marchbut 05 März

Dim strMonth  As String strMonth =  Format(Date, "mm")' Check for month folder and create if neededIf Len(Dir("C:\Users\Luca\Desktop\TestDaty\"& client & "\"& Year(Date) & "\"& strMonth & ""& MonthName(Month(Date), False), vbDirectory)) = 0 Then    MkDir "C:\Users\Luca\Desktop\TestDaty\"& client & "\"& Year(Date) & "\"& strMonth & ""& MonthName(Month(Date), False)End If

so maybe some country code here?MonthName(Month(Date)Please help me!!! :)

Query string length limit in vba?

$
0
0

I am trying to combine multiple audit tables, and then filter the results into an excel sheet. The Union All and parameters make the query in excess of 1200 characters. It appears the string is truncated when running this. What recommendations can anyone make. I have no control over the database structure and am only reading foxpro free tables.

I am permitted table creation but can write into the excel sheet connecting to the datasource

An update to this is that I was able to extend the query string beyond 1800 characters and get data back. So I conclude I had syntax errors and the apparent truncation I mentioned was a failure in my string development in the scripting.

I posted an example of my connection code and that answer has disappeared, so I am not sure how to designate this a closed issue. There is NOT an apparent string length limit and that was my initial concern. Thanks for the contributions.

Viewing all 88178 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>