+ Reply to Thread
Results 1 to 7 of 7

Help to find a formula that replace numbers

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Help to find a formula that replace numbers

    Hi,

    Se attachment.

    I have a huge document where I have to find a formula.
    Look on the example attached.
    Let's take 16 as an example. I have 16 in C2. I want it to be in every cell fra B2 to B6 (until the last "L" in column A before "H").

    Is there any formula I can use? Any other good ideas?

    Kind Regards
    JohnnyWalker
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Help to find a formula that replace numbers

    hi JohnnyWalker, how about:
    =IF(C2="",B1,C2)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  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,728

    Re: Help to find a formula that replace numbers

    Put this formula in B2:

    =IF(A2="H",C2,B1)

    then copy down by selecting B2 again then double-clicking the fill handle (the small black square in the bottom right corner of the cursor).

    Hope this helps.

    Pete

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Help to find a formula that replace numbers

    In B2 cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Drag it down.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  5. #5
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Help to find a formula that replace numbers

    Hi again,

    What if I have numbers like in this new attachement?

    Which formula I can use?

    Thanks for the help!
    Attached Files Attached Files

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

    Re: Help to find a formula that replace numbers

    My formula in post #3 would do that for you.

    Pete

  7. #7
    Registered User
    Join Date
    05-30-2012
    Location
    Norway
    MS-Off Ver
    Excel 2010
    Posts
    38

    Re: Help to find a formula that replace numbers

    Perfect! Thanks!!

    JohnnyWalker

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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