+ Reply to Thread
Results 1 to 2 of 2

This works for Number Values but not Text Values

  1. #1
    Registered User
    Join Date
    10-01-2020
    Location
    Washington State
    MS-Off Ver
    2008
    Posts
    2

    Question This works for Number Values but not Text Values

    Hello, this is my first post asking for help with a formula/function so I apologize if not all the info is here. I am also still learning VBA. I'll watch the thread to answer any questions if clarification is needed.

    I am using this formula/function in one of my macros

    Sheets("Ordering_Tool").Select
    Range("I2").Select
    ActiveCell.FormulaR1C1 = _
    "=SUMPRODUCT((RC[-6]=AndresenNeeds!R2C6:R3999C6)*AndresenNeeds!R2C11:R3999C11)"
    Range("I2").Select
    Selection.Copy
    Range("I3:I3999").Select
    ActiveSheet.Paste

    This works perfectly to get numerical information for specific items onto another sheet where I need it to go. When I tried to use this with SKUs that have letters in it i get a #VALUE error and it does not work.

    Could anyone help me figure out a function to use to make this work.
    Attached Files Attached Files
    Last edited by nuhnell; 10-01-2020 at 03:33 PM. Reason: Adding Example

  2. #2
    Registered User
    Join Date
    04-26-2020
    Location
    Massachusetts
    MS-Off Ver
    Office 365
    Posts
    93

    Re: This works for Number Values but not Text Values

    Please upload a small clean sample of your data / workbook (not a picture) to the forum, Make sure you
    have removed any private information, remember this is a public forum and so available to anyone.
    We would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    This will help tp understand the issue. SUMPRODUCT treats non numeric as Zeros.

+ 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. if text contains number between two values
    By amirflax in forum Excel General
    Replies: 12
    Last Post: 06-30-2020, 09:25 PM
  2. Sorting Ranges with Text Values and Number Values using Formula
    By oudavid1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-27-2017, 03:05 PM
  3. [SOLVED] Geting highest number value from list with values which are text/number combinations
    By igormigor in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2016, 10:48 AM
  4. [SOLVED] Changing number values into sequential text values.
    By alex.l_91 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-17-2013, 02:37 AM
  5. Calculating Number's Between - two text values
    By angryrugbyman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-14-2012, 06:20 PM
  6. Difference between values Text + Number
    By hpunaro in forum Excel General
    Replies: 3
    Last Post: 05-18-2010, 05:14 PM
  7. [SOLVED] Sum in vba only works for multiple values not for single values??
    By Bevy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2006, 06:45 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