Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7974393
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:21:22+00:00 2026-06-04T08:21:22+00:00

I am uploading a Tabular data into my SQL database. The following is the

  • 0

I am uploading a Tabular data into my SQL database.

The following is the original look of the data.

enter image description here

I want to take each temperature (Y axis) in a column and then each gravity (X Axis) in next Column, followed by the intersecting value.

Like This:

enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:21:24+00:00Added an answer on June 4, 2026 at 8:21 am

    i got helped from a guy from ExcelForum. Here is the Macro Code, that solved my problem.

           Option Explicit
    
        Sub transpose_data()
        Dim lrow As Long, lcol As Long, a As Long, i As Long, j As Long
    
        Worksheets.Add(after:=Worksheets(Worksheets.Count)).Name = "Output"
        a = 1
        With Worksheets("Original")
            lrow = .Range("A" & .Rows.Count).End(xlUp).Row
            lcol = .Range("IV1").End(xlToLeft).Column
            For i = 2 To lrow
                For j = 2 To lcol
                    Worksheets("Output").Cells(a, 1).Value = .Cells(i, 1).Value
                    Worksheets("Output").Cells(a, 2).Value = .Cells(1, j).Value
                    Worksheets("Output").Cells(a, 3).Value = .Cells(i, j).Value
                    a = a + 1
                Next j
            Next i
        End With
    
    Worksheets("Output").Columns("A:C").NumberFormat = "0.00"
    
    End Sub
    

    Make sure to change the Sheet name to ‘Original’ in order to have this code working.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with uploading image to SQL database. i have Methods Upload in
My user is uploading an image of any size XX x YY. I want
I am uploading in image via a form and I want to, in addition
I was uploading the data to App Engine (not dev server) through loader class
I have an image uploading script in which i use the following setup to
Uploading files on my server would take a lot of time,is it possible to
I am currently uploading images pasted from the clipboard with the following code: //
Im uploading a file using the following jquery.. function ajaxFileUpload(jobid) { $(#loading) .ajaxStart(function ()
My users are uploading a csv or xls or whatever and each line is
I am Uploading a file into a webserver using File upload API it works

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.