+ Reply to Thread
Results 1 to 7 of 7

Having issues with =RIGHT formula not actually doing anything.

  1. #1
    Registered User
    Join Date
    04-06-2016
    Location
    Madison, WI
    MS-Off Ver
    2013
    Posts
    3

    Having issues with =RIGHT formula not actually doing anything.

    I have a simple spreadsheet with UPCs along with other information. I need to remove the first 2 digits from each UPC entry as they are too long. I am trying to use the =RIGHT formula to just grab the whole text string minus the two beginning numbers. What I'm getting is my formula in a cell with no result, as seen in the example below. If I click on my formula, in C2, it looks like this: =RIGHT(B2,LEN(B2)-2). In my experience this means the formula isn't written correctly but I've googled multiple times and I feel I'm entering it correctly. I'm hoping someone here can steer me into what I need to be doing.

    My UPCs are entered as text, as if they get switched to numbers Excel removes ALL the preceding 0s and some of them are necessary. Tried using text to column and that's what happened. Coverted to numbers and I lost some essential 0s.

    WHAT I GET:
    14.97 00883929131716 =RIGHT(B2,LEN(B2)-2)
    29.98 00883929024292
    9.99 00097360301243

    WHAT I WANT:

    14.97 00883929131716 883929131716
    29.98 00883929024292
    9.99 00097360301243

  2. #2
    Valued Forum Contributor loginjmor's Avatar
    Join Date
    01-31-2013
    Location
    Cedar Rapids, Iowa
    MS-Off Ver
    Excel 2013
    Posts
    1,073

    Re: Having issues with =RIGHT formula not actually doing anything.

    I think your formula is correct. When you enter edit mode (click on the formula) Excel highlights and color codes paretheses pairs to help with debugging your formula. To keep Excel from treating the UPC's as numbers, format the cells as text and see if that helps.
    ____________________________________________
    If this has solved your problem, please edit the thread title to add the word [SOLVED] at the beginning. You can do this by
    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

    If I have been particularly helpful, please "bump" my reputation by pressing the small star in the lower left corner of my post.

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Having issues with =RIGHT formula not actually doing anything.

    If you're seeing the actual formula in the cell that usually means the cell is formatted as TEXT.

    Format the cell as General then press function key F2 then press Enter.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    04-06-2016
    Location
    Madison, WI
    MS-Off Ver
    2013
    Posts
    3

    Re: Having issues with =RIGHT formula not actually doing anything.

    loginjmor, thanks, the UPCs were already formatted as text.

    Tony Valko - Solved - That was it. My FORMULA column was somehow formatted as text as well, in a new sheet. Weird but now its something I know to look out for in the future.

    Thank you!

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Having issues with =RIGHT formula not actually doing anything.

    You're welcome. Thanks for the feedback!

  6. #6
    Registered User
    Join Date
    04-06-2016
    Location
    Madison, WI
    MS-Off Ver
    2013
    Posts
    3

    Re: Having issues with =RIGHT formula not actually doing anything.

    Any advice on how I could have more easily put what is now Column C (results) where Column B (original numbers) was? If I tried to copy and paste Column C it just created a bunch of unusable BS because I was essentially copy and pasting formulas vs results. I ended up cutting and pasting the column between A and B so it became the new B and then hiding what was now C. I thought there was a way to copy the value of a cell vs the formula but couldn't recall it.

    Thanks again

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Having issues with =RIGHT formula not actually doing anything.

    Here's what you could do...

    Inspect the formula results and make sure they are correct.

    Assume the formulas are in the range C1:C10.

    Select the range C1:C10
    Right click>Copy
    Right click>Paste Special>Values>OK
    Drag C1:C10 over to B1:B10

+ 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. Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2016, 08:07 AM
  2. [SOLVED] Excel to Outlook Calendar date duplication issues and blank cells causing issues
    By singerbatfink in forum Outlook Formatting & Functions
    Replies: 0
    Last Post: 02-11-2016, 07:57 AM
  3. Replies: 3
    Last Post: 07-16-2014, 01:50 AM
  4. Data Validation List Issues/Sorting Issues
    By taylorbe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2014, 09:53 AM
  5. Replies: 3
    Last Post: 11-28-2013, 02:11 AM
  6. vlookup formula based on formula issues
    By katejags in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-06-2012, 05:14 AM
  7. IF ANY Formula issues
    By Kezwick in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 09-19-2011, 10:02 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