+ Reply to Thread
Results 1 to 7 of 7

I need part of the value of a cell to be static and the other part to be pulled from other

  1. #1
    Registered User
    Join Date
    10-30-2018
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    12

    I need part of the value of a cell to be static and the other part to be pulled from other

    I need part of the value of a cell to be static and the other part to be pulled from other cell. Here is the formula I am using:

    =IF(E409="Apple Pie","1:9","")

    So I would like the value 1:9 to always be 1: but the 9 to be based on the value in cell D. So if Cell D is 9.7 I want the value entered to be 1:9.7
    As always thanks in advance for any help.

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    assuming 9.7 is in cell D1 then:

    =IF(E409="Apple Pie","1:"&D1,"")

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    Try this:

    =IF(E409="Apple Pie","1:"&TEXT(D409,"0.0"),"")

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    10-30-2018
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    12

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    Quote Originally Posted by Pete_UK View Post
    Try this:

    =IF(E409="Apple Pie","1:"&TEXT(D409,"0.0"),"")

    Hope this helps.

    Pete
    This works great! how would I format it if say I wanted the 9 to be static and the 1 to come from D? Probably an obvious answer but I am pretty new to this.

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    Try it this way:


    =IF(E409="Apple Pie",TEXT(D409,"0")&":9","")

    Hope this helps.

    Pete

  6. #6
    Registered User
    Join Date
    10-30-2018
    Location
    US
    MS-Off Ver
    Office 365
    Posts
    12

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    Worked perfectly, Thanks!

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,726

    Re: I need part of the value of a cell to be static and the other part to be pulled from o

    Glad to help.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark this thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Formula to move part of a value to a new cell - part 2
    By forestavekids in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 04-28-2016, 12:34 PM
  2. [SOLVED] Macro to Group Part #s Together than Identify Those Pulled from Incorrect Bins
    By mab1284 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-02-2014, 09:54 AM
  3. [SOLVED] How to drag / copy to 1000 rows, leaving one part of the formula static?
    By johanna0507 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-01-2013, 08:54 AM
  4. [SOLVED] reference part of cell address from button and part of another cell
    By JJGF in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-24-2012, 04:48 PM
  5. Find Part number through Macro and output to associated part to certain cell
    By boylers75 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-09-2012, 04:32 PM
  6. Using Today() and making it Static based on a particular condition. Part-II
    By all4excel in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-04-2008, 03:49 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