+ Reply to Thread
Results 1 to 13 of 13

Format connected cells: lose of number format

Hybrid View

  1. #1
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    98

    Format connected cells: lose of number format

    hi all,
    I am building a model that is cell reference to set measurement and currency
    when I am connecting the cell i lose the desired number format that I usually have in excel.
    See attached example



    Any idea how to solve this?

    cheers ?
    Attached Files Attached Files
    Last edited by SwissExcel; 05-04-2020 at 08:25 AM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Format connected cells: lose of number format

    Try this formula

    =IF(Units="","",TEXT(Units*(1+G22),"#,##0")&Measurment)

  3. #3
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Wink Re: Format connected cells: lose of number format

    BTW, Measurment is spelt Measurement

  4. #4
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    98

    Re: Format connected cells: lose of number format

    Thanks Bob,
    I have tried to do work with the same formula on the currency column (Adding text formula) , but this doesnt work.
    I am now uploading the real model, rather than the dummy
    would appreciate your help... see cells H32:h37.
    I am suspecting that this is something to do with the text formla
    Attached Files Attached Files

  5. #5
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Format connected cells: lose of number format

    Try starting with this

    =TEXT(TRIM(SUBSTITUTE($H32,"$",""))*(1+I$30)*Units-(unit_cost*Units*(1+I$30))-Profit,"#.##0;-#,##0")&measurement

  6. #6
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    98

    Re: Format connected cells: lose of number format

    not sure where this formula needs to go?
    Just to clarify:
    I am looking to create a formula (in cells H32: H37) that will combine the currency symbol in cell g12

  7. #7
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Format connected cells: lose of number format

    In I32, down and across.

  8. #8
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    98

    Re: Format connected cells: lose of number format

    ohhh. now I got it. thank you , this is very nice of you, but I am trying to do something else ...
    I am trying to format cells H32:37 (actully all the way down to H46) so they will show the currency format which is in cell G12 (the currency may change) withough damaging the calculations which are in the table. .

    Any idea how to do so?

  9. #9
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Format connected cells: lose of number format

    OK, just change measurement to Currency in the formula. Also, change the hard-code $

    =TEXT(TRIM(SUBSTITUTE($H32,Currency,""))*(1+I$30)*Units-(unit_cost*Units*(1+I$30))-Profit,"#.##0;-#,##0")&Currency

  10. #10
    Registered User
    Join Date
    03-04-2015
    Location
    Switzerland
    MS-Off Ver
    365
    Posts
    98

    Re: Format connected cells: lose of number format


    this formula works on what inside the table. I want to work on what is on the axis (cells H32:H46)
    So for example cell H39 will show 100$, but the $ will come from what is in cell G12. rather than from the formating of the cell.
    I am not sure if this can be done - I tought that custom formating can solve this , but not sure this functionality exist ...

  11. #11
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Format connected cells: lose of number format

    Quote Originally Posted by SwissExcel View Post

    this formula works on what inside the table. I want to work on what is on the axis (cells H32:H46)
    So for example cell H39 will show 100$, but the $ will come from what is in cell G12. rather than from the formating of the cell.
    I am not sure if this can be done - I tought that custom formating can solve this , but not sure this functionality exist ...
    I am picking it up from G12, that cell is named Currency. You can't reference a cell in n umber format, but you can set it with the TEXT function as I show.

  12. #12
    Registered User
    Join Date
    09-27-2013
    Location
    Hamilton, OH
    MS-Off Ver
    2007 & 365 ProPlus
    Posts
    5

    Re: Format connected cells: lose of number format

    Maybe it would help if you showed what you want the output to look like. ie. $107/Kg

  13. #13
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Format connected cells: lose of number format

    Please try at I32
    =SUBSTITUTE($H32,Currency,)*(1+I$30)*Units-(unit_cost*Units*(1+I$30))-Profit

+ 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. Replies: 6
    Last Post: 12-08-2018, 09:26 PM
  2. [SOLVED] VBA textbox populating cells in text format instead of number format
    By chrismccarthy17 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-03-2016, 07:46 AM
  3. Merged Cells Lose Format
    By CCSLBuckles in forum Excel General
    Replies: 3
    Last Post: 10-10-2014, 03:27 PM
  4. Columns Lose Format On Refresh
    By goss in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 05-30-2013, 05:09 PM
  5. Replies: 0
    Last Post: 03-12-2009, 10:16 PM
  6. [SOLVED] * next to date format in Format>cells Number tab
    By Marco18+ in forum Excel General
    Replies: 6
    Last Post: 04-05-2006, 03:45 PM
  7. [SOLVED] bug: Excel cells lose format after a "replace all" function
    By Li in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-24-2006, 08:20 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