+ Reply to Thread
Results 1 to 2 of 2

Subtracting numbers in cell from another cell while ignoring the letters

  1. #1
    Registered User
    Join Date
    04-15-2021
    Location
    Las Vegas
    MS-Off Ver
    2016
    Posts
    1

    Subtracting numbers in cell from another cell while ignoring the letters

    Here's what I've been trying to figure out for the last several days...

    My boss wants to keep an accurate count of parking lot spaces from several of our lots on a daily basis. Often these lots get leased and currently my formula adds the number of spaces in each lot from the total if the cell is empty. Additionally they may lease a lot to provide extra parking which is then added if the cell has anything in it. Finally there are always a certain number of parking spaces which vary day by day and are deducted from the total. What I am trying to figure out is how to put random numbers in the cell along with the text which shows who is leasing the lot and deduct just the number from the total.

    This is the current formula I've created.
    =SUM(SUMIF(C5:T5,"=",$C$35:$T$35))+(SUMIF(W5:X5,"*",$W$35:$X$35))-(SUM(Z5:AB5))

    Example:

    C5 has XYZ in the cell, nothing is added to the total, if it is blank the value in C35 is added. If XYZ 234 is in C5 I would like to subtract 234 from the value in C35 and add the remaining to the total.

  2. #2
    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,929

    Re: Subtracting numbers in cell from another cell while ignoring the letters

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    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

+ 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] Ignoring letters behind numbers
    By bj in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 09-06-2005, 07:05 AM
  2. [SOLVED] Ignoring letters behind numbers
    By Ron Coderre in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-06-2005, 04:05 AM
  3. [SOLVED] Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. [SOLVED] Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-05-2005, 10:05 PM
  8. [SOLVED] Ignoring letters behind numbers
    By jeremy via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-08-2005, 04:05 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