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 6687811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:19:56+00:00 2026-05-26T05:19:56+00:00

I am working on an application which is used to scrape data from an

  • 0

I am working on an application which is used to scrape data from an excel spreadsheet and store it into a database. The data is not normalized in excel so the scrape needs to be very flexible. I have recently changed the implementation to be somewhat more generic where before

I was storing the ExcelCellLocation and now have broken it up into ExcelColumn, ExcelRowStart, and ExcelRowEnd.

I am looking for a way to take all of the rows in that table and split up the ExcelCellLocation into the new implementation.

For example:

ExcelCellLocation
F5
AB23

Becomes

ExcelColumn | ExcelRowStart | ExcelRowEnd
F           | 5             | 5
AB          | 23            | 23

The reason for the change is that I am now scraping another spreadsheet in the workbook and the implementation needed to be changed in order to better suit the new spreadsheet while still working for the spreadsheet currently being scraped. The new mappings will look more like this:

ExcelColumn | ExcelRowStart | ExcelRowEnd
BC          | 10            | 150
BC          | 160           | 300

Is there a way to do this with a SQL script that will iterate through each record and make the apropriate changes?

Thanks in advance!

  • 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-05-26T05:19:56+00:00Added an answer on May 26, 2026 at 5:19 am
    -- Sample data
    ;with T(ExcelCellLocation) as
    (
      select 'F5' union all
      select 'AB23'  
    )
    
    -- Query
    select  
           left(ExcelCellLocation, patindex('%[0-9]%', ExcelCellLocation)-1) as ExcelColumn,
           stuff(ExcelCellLocation, 1, patindex('%[0-9]%', ExcelCellLocation)-1, '') as RowStart
    from T
    

    Result:

    ExcelColumn RowStart
    ----------- -----------
    F           5
    AB          23
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an application which has data imported from a foreign (and wholly
all i am working on one application in which i have to used database.
These days I'm working on a VB.NET application which can be used to edit,
I am working on a web-application in which dynamically-created images are used to display
I'm working on an application which stores data in tables, similar to an RDBMS.
I'm working on iphone application which needs to run offline at an exhibition. It
Application : I am working on one mid-large size application which will be used
I'm working on a Cocoa application which will be used for a digital-signage/kiosk style
I am working on an application which needs to load fonts dynamically based upon
I defined an application which is only used from my other application. So I

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.