+ Reply to Thread
Results 1 to 7 of 7

Question About Excel Columns

  1. #1
    Registered User
    Join Date
    05-22-2016
    Location
    Czech Republic
    MS-Off Ver
    Word, Excel, Microsoft Office version 2010
    Posts
    4

    Question About Excel Columns

    Hello,

    I am a newcomer to the forum, so hello everybody. I was asked to post a "Hello" thread but doing so seemed pointless to me, so instead I wanted to introduce myself in this thread where I actually ask a question.

    My question is rather complex so let me explain in a little bit more detail: I am using Microsoft Office 2010 (Excel 2010) and have an Excel sheet with two columns. In column B, all rows are filled, whereas in column A, only some of them are filled with a value. When I copy the values of column B into another piece of software that I use that allows me to come up with some information pertaining to values of column B, the information it comes up with is information that is to be filled into column A. My goal here is to come up with an Excel sheet that has all of the values in column B filled (which it already did in the beginning) but as many values of column A filled, as well.

    However, it is not as easy as simply copying and pasting the values the software comes up with into column A. That is for a couple of reasons. First of all, it only comes up with results for certain values of column B, not all of them. Secondly, and probably more importantly, I do not want to over-write the original values of column A with the new ones that the software has come up with. I want to keep the original ones and add as many new values from the software into column A as possible (into the cells that have so far been blank).

    Is there a way to do so using an Excel function or some other tool you know of? The Excel sheet is a very large document and may contain about a hundred thousand rows, so manually going through the results and copying and pasting them into the Excel sheet one by one would be hugely painful and time-consuming.

    If anything about my question is not clear, please let me know and I'll explain.

    Thank you very much and again, nice to meet you!

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Question About Excel Columns

    Hi and welcome to the forum,

    I find it hard to visualise what you are saying. Would you upload the workbook or at least a cut down representative copy. Show a before and after situation manually adding the results you expect to see.

    Incidentally would you change your location to something meaningful. This often helps when we need to consider things like time zones and regional settings for dates and list separators.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Question About Excel Columns

    Hi, welcome to the forum

    i *think* I understand what you want...
    A
    B
    C
    D
    E
    F
    G
    1
    Old A Old B New A New Import
    2
    1
    aa
    1
    aa
    1
    3
    bb
    0
    bb
    4
    2
    cc
    2
    cc
    5
    dd
    6
    dd
    6
    6
    3
    ee
    3
    ee
    7
    ff
    7
    ff
    7
    8
    4
    gg
    4
    gg
    8
    9
    hh
    9
    hh
    9
    10
    5
    ii
    5
    ii
    11
    jj
    10
    jj
    10

    C2=IF(A2="",VLOOKUP(B2,$F$2:$G$11,2,0),A2)
    copied down
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-22-2016
    Location
    Czech Republic
    MS-Off Ver
    Word, Excel, Microsoft Office version 2010
    Posts
    4

    Re: Question About Excel Columns

    Hi Richard,

    Thanks for the fast reply. I have changed my location to something meaningful, hopefully it is sufficient now.

    I have uploaded three files that I just created. First file (1.xlsx) represents the original Excel sheet. As you can see, all rows in column B are filled but only some are filled in column A.

    File 3 represents the outcome of running values of column B through the software I was talking about earlier. As you can see, it contains many more values in column A than file 1 does because the software is able to retrieve these values for values of column B. File 3 does not contain values in rows 3, 5, 10, however, because I would not want to copy values in these rows even in case the software did come up with them because as already mentioned above, I would want to keep the original values (that were contained in file 1, in rows 3, 5, 10).

    File 2 is the combination of file 1 and 3. It is the desired outcome. Column A is much more filled with data than it originally was, but as you can see, rows 12 and 13 are still empty. That is because the software is not perfect and is not able to retrieve a value for every single column B value that I run it for.

    I hope it makes more sense now. My question is, is there a way to copy the column A values contained in file 3 into the final file 2 without having to do it manually, one by one?
    Attached Files Attached Files
    Last edited by Tekamolo; 05-22-2016 at 06:07 PM.

  5. #5
    Registered User
    Join Date
    05-22-2016
    Location
    Czech Republic
    MS-Off Ver
    Word, Excel, Microsoft Office version 2010
    Posts
    4

    Re: Question About Excel Columns

    Sorry, I see file 2 mistakenly contains the text "Column A" in row 4 of column A, while it should contain the letter "p".

  6. #6
    Registered User
    Join Date
    05-22-2016
    Location
    Czech Republic
    MS-Off Ver
    Word, Excel, Microsoft Office version 2010
    Posts
    4
    Sorry for bumping this thread, but I have to do it because I still have not found a solution.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Question About Excel Columns

    I see you have 3 files, but was post 3 of no use to you?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Mathematical question or excel question? Multiple several numbers in a row.
    By douglascaixeta in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-22-2015, 05:48 PM
  2. database question, excel data sorting question
    By weblisterltd.com in forum Excel General
    Replies: 1
    Last Post: 12-17-2014, 01:35 PM
  3. Replies: 2
    Last Post: 08-18-2012, 05:36 AM
  4. excel formula question - testing two columns to set value
    By Jagosta in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-08-2012, 03:09 PM
  5. Two question, numeric code question and subtraction of two columns?
    By mgsweden78 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-18-2008, 02:50 AM
  6. Question about columns
    By rhendrickson in forum Excel General
    Replies: 1
    Last Post: 04-24-2006, 02:25 PM
  7. [SOLVED] The question is an excel question that I need to figure out howto do in excel.
    By Terry in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-23-2006, 02:25 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1