+ Reply to Thread
Results 1 to 9 of 9

Divide a number with cell containing txt and formula

  1. #1
    Registered User
    Join Date
    03-18-2015
    Location
    Shanghai
    MS-Off Ver
    10
    Posts
    7

    Divide a number with cell containing txt and formula

    Hello,
    Sorry if this is wrong place to post this quiestion. Im new

    I have this formula in A1 "="Totale timer: "&SUM(B37;C37;D37;E37;F37;G37;H37;I37;J37;K37;L37;M37)" and i want to divided it by 10250.

    How can i do this? I dont want to make a new cell for 10250 mening /B2 for instance.

    Please help me

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Divide a number with cell containing txt and formula

    try this:
    Please Login or Register  to view this content.
    or /B2
    Last edited by sandy666; 03-19-2015 at 12:16 AM. Reason: I forgot about 0 on the end

  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,612

    Re: Divide a number with cell containing txt and formula

    Use custom number format for cell A1:
    Please Login or Register  to view this content.
    In A1:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by protonLeah; 03-19-2015 at 12:51 AM.
    Ben Van Johnson

  4. #4
    Registered User
    Join Date
    03-18-2015
    Location
    Shanghai
    MS-Off Ver
    10
    Posts
    7

    Re: Divide a number with cell containing txt and formula

    Meaning that B2 will be "="Lønn: """&SUM(B37:M37)/1025". Not working.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Divide a number with cell containing txt and formula

    you don't say that in the first post

    ="Lønn: "&SUM(B37:M37)/1025

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Divide a number with cell containing txt and formula

    btw. you can't divide text+numbers by text+numbers
    A1 is a text+numbers
    B2 is a text+numbers
    in
    ="Lønn: "&SUM(B37:M37)/1025 you can use any cell with 1025 value, i.e. C3=1025
    and
    ="Lønn: "&SUM(B37:M37)/C3
    but C3 cannot be
    ="Any text: "&SUM(B37:M37)/1025

  7. #7
    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,936

    Re: Divide a number with cell containing txt and formula

    ="Lønn: "&SUM(B37:M37)/C3
    but C3 cannot be
    ="Any text: "&SUM(B37:M37)/1025
    why not? the SUM() part will calc normally (including the / part) and the answer will be added on after the text

    A
    B
    C
    D
    E
    F
    G
    H
    I
    J
    K
    L
    M
    34
    Lønn: 0.760975609756098
    35
    36
    37
    10
    20
    30
    40
    50
    60
    70
    80
    90
    100
    110
    120
    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

  8. #8
    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,936

    Re: Divide a number with cell containing txt and formula

    forgot to add...
    A34="Lønn: "&SUM(B37:M37)/1025

  9. #9
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Divide a number with cell containing txt and formula

    try this:

    A1: ="Totale timer: "&SUM(B5:H5)/A2

    A2: ="Any text: "&SUM(B5:H5)

+ 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] Formula to divide a number and format if greater than a 100
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-10-2014, 07:04 PM
  2. Amending formula to divide by the first number in the range used.
    By joshnathan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-15-2012, 09:38 AM
  3. Divide Number from data in Cell's?
    By termal in forum Excel General
    Replies: 2
    Last Post: 07-08-2009, 04:21 PM
  4. Divide number and add remainder in another cell
    By rhon101 in forum Excel General
    Replies: 4
    Last Post: 11-29-2005, 10:10 PM
  5. [SOLVED] Excel formula divide list of #s by N to get a number above 40
    By JudyK in forum Excel General
    Replies: 11
    Last Post: 02-09-2005, 05:06 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