안녕하세요. 데이터를 읽은 후 그 값을 스프레드 시트 표에 넣고 싶습니다.
스프레드 시트는 위와 같은 형식으로 구성되어 있습니다.
1~16까지 오름차순으로 특정 데이터를 조회한 뒤에 스프레드 시트에 그 값을 입력하려고 합니다.
변수로 int_age = 1로 설정한 뒤에 While을 써서 int_age <= 16 일 때 까지만 데이터를 조회하게 설정했습니다.
이럴 경우 A열을 입력한 후에 B열을 입력하고, C열을 입력하는 식으로 진행됐으면 하는데 방법을 모르겠습니다.
도움을 주신다면 정말 감사하겠습니다.
Anil_G
(Anil Gorthi)
2
@juhwanLee
Can you please show the input and expected output that would help in better understandinng
Cheers
The inputs are 1, 2, 3, 4, 5, 6, 7
The outputs are like these. For one input I can get multiple output row. some outputs have rules, but the others don’t.
Best Regards,
Anil_G
(Anil Gorthi)
4
@juhwanLee
As you already know the column where it is present as everything is in order
you only need to use read range and read the required column alone and then filter with empty rows
so that you know the last row number
you can use that number and the column value together to know where to add the next value
like "A" + (dt.RowCount + 2).ToString
cheers
1 Like
Thank you!! Now I know how to do it!
I really appreciate your help
Have a great day!
1 Like
system
(system)
Closed
6
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.