+ Reply to Thread
Results 1 to 4 of 4

Number stored as text when copying data from one sheet to another

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    16

    Number stored as text when copying data from one sheet to another

    I have a report with data in it - I need to copy that into a different spreadsheet, but when I copy and paste values - I get number stored as text error in the new spreadsheet which is a pain.

    The cells in the original sheet - where I am copying it from - are based on various formulas:

    =IF('INPUT - RP EXPORT'!E1281="API","0","1")

    =IF(OR(I1281=" 0.00",I1281=""),"0","1")

    =REPLACE('INPUT - RP EXPORT'!J1281,1,5,"")

    =MID(INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)),FIND(":",INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)))+2,50)

    How do I make it so when I paste them into the new spreadsheet I don't get this error?

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Number stored as text when copying data from one sheet to another

    I presume that they are showing in the original worksheet as general or text?

    One thing you need to do is change this:

    =IF('INPUT - RP EXPORT'!E1281="API","0","1")

    to this:

    =IF('INPUT - RP EXPORT'!E1281="API",0,1)

    so that the 0 or 1 are returned as numbers, not text.

    This one:

    =MID(INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)),FIND(":",INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)))+2,50)

    can probably be converted to a number like this:

    =--MID(INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)),FIND(":",INDEX('INPUT - RP EXPORT'!1281:1281,MATCH("*Bespoke Tracking*",'INPUT - RP EXPORT'!1281:1281,0)))+2,50)

    I cannot immediately see why this one would be problematic:

    =REPLACE('INPUT - RP EXPORT'!J1281,1,5,"")

    but again, you could try this:

    =--REPLACE('INPUT - RP EXPORT'!J1281,1,5,"")
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-22-2019
    Location
    UK
    MS-Off Ver
    Excel 2019
    Posts
    16

    Re: Number stored as text when copying data from one sheet to another

    Great tips - thanks, solved the issue!

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,980

    Re: Number stored as text when copying data from one sheet to another

    Good to know.

+ 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. Number stored as text
    By kranic3 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-07-2017, 10:00 AM
  2. [SOLVED] Text stored as number when copied from one sheet to another, Auto convert required
    By A440 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-06-2016, 09:06 AM
  3. Number stored as text
    By Tolch in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-23-2015, 09:33 PM
  4. Replies: 1
    Last Post: 10-28-2012, 05:42 AM
  5. Number stored as text
    By Sharp in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2007, 07:52 AM
  6. Number stored as text
    By Andrew Clark in forum Excel General
    Replies: 1
    Last Post: 11-08-2005, 06:30 PM
  7. [SOLVED] Number stored as text
    By sueanne in forum Excel General
    Replies: 1
    Last Post: 03-02-2005, 11:16 PM

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