+ Reply to Thread
Results 1 to 5 of 5

Adding a data from a cell prior to account number

  1. #1
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Adding a data from a cell prior to account number

    Hi There,

    I have a report that I run in a system at work and then save as a .txt file, use the text to columns in excel to format it how I need it and get the attached spreadsheet. This would work perfectly for me with an exception to one issue.

    I changed a lot of the text on the report to protect privacy, but the information is formatted the same so I don’t think we should have issues finding a resolution.

    This report has areas highlighted, basically what I need is for the spreadsheet to know when we are changing associations, and to assign the number next to association name in front of the unit number so that I can have the full account number.

    Example: Line 14 shows a number (34-5678) in column C14, this number will change within the same association if there are multiple buildings and it will also change if we are looking at a new association. This number is the first 6 digits of an account number and goes along with the unit number (column A) I need to somehow have excel pull that number when it exists in that column and place it before the unit number so we have the full account number. There won’t always be a number there, it only appears when there is a new association or building change within the same association. Is there a way to do this?

    Please provide instructions on how you created a formula, rather than copying and pasting one – if possible. I’d appreciate copying and pasting as well 
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    08-06-2015
    Location
    England
    MS-Off Ver
    2013
    Posts
    68

    Re: Adding a data from a cell prior to account number

    Without VBA, you can use a helper column. Add a column for the account number and use this:
    =IF(ISBLANK($D$14),A16,$D$14&"-"&A16)

  3. #3
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: Adding a data from a cell prior to account number

    Thank you, this works for the first building but as soon as that number changes (see column D70) it doesn't produce the correct account number. I need the formula to look for an account number in column D a number that consists of xx-xxxx and to input whatever those numbers are to the formula. Column D will only have a number like that when the building or association changes other wise it will be client name or other data.

  4. #4
    Registered User
    Join Date
    08-06-2015
    Location
    Mesa, Arizona
    MS-Off Ver
    Microsoft Excel 2013
    Posts
    84

    Re: Adding a data from a cell prior to account number

    I need a formula that will search column D for a sting of numbers that will be different but always follow the same pattern ie: 12-3456, 34-5678, 45-6789

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Adding a data from a cell prior to account number

    Starting in H12 copied down

    =IF(ISNUMBER(SEARCH("??-????",C13)),C13,NA())
    I formatted this in white so its not visible. Could also hide this column

    Starting in I12 copied down
    =IF(AND(A12>0,ISNUMBER(A12+0)), INDEX($H$12:$H12, MATCH("zzz", $H$12:$H12))&"-" & A12,"")
    Does that work for you?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. formulas that show other data only from Account Number ( need help plz )
    By zitno in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 09-13-2014, 07:35 PM
  2. if Account number = return Account Name
    By mom2carisa in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-04-2013, 06:03 PM
  3. Return Account Nickname if Account Number Matches
    By spacle in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-03-2013, 11:04 AM
  4. [SOLVED] How to censor account numbers based on how many characters are in the account number
    By Mcorydon in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-25-2013, 01:06 PM
  5. Auto sum data in rows by account number
    By curt03yzfr1 in forum Excel General
    Replies: 3
    Last Post: 12-09-2011, 09:05 AM
  6. Copy all data that match a month and account number
    By MAButler in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-01-2011, 08:32 AM
  7. Comparing data of two sheets-Pick an account number,
    By sriramkanala in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2006, 10:59 AM

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