+ Reply to Thread
Results 1 to 13 of 13

Fix a cell value for a certain range

  1. #1
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Fix a cell value for a certain range

    Dear All,

    Good Evening!!!!

    I want to know whether it is possible to refer a cell value for a certain range

    Ex: I want to populate A5 cell value in the range B5 to B38 & A35 cell value for a range from B35 to B73

  2. #2
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    Please Login or Register  to view this content.
    Cheers!
    Deep Dave

  3. #3
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    Thanks for your reply.

    Can we have a formula for this. Just with a curiosity

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    You will have to select the range B5:B38, then use the formula =A5 and hit Ctrl+Enter

  5. #5
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    Its populating the values beside these cells ex: B5=A5, B6=A6 etc?

    These cells should stick to that particular cell. Can we don this?

  6. #6
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    I am sorry, the formula should have been =$A$5 not just =A5

  7. #7
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    So B35 to B73 also will be populated with the same value which is in A5 rather than A35

    How could we achieve this? Any formula will be appreciated please.

  8. #8
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    You will have to select the range B5:B38, then use the formula =$A$5 and hit Ctrl+Enter
    You will have to select the range B35:B73, then use the formula =$A$35 and hit Ctrl+Enter

  9. #9
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    Thanks for your inputs. But I dont want to do that manually or with VBA because I have already set the formula in my report in which this is the only thing I'm doing manually which I want to achieve with formula but couldnt able to find the exact formula which do this.

  10. #10
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    I am not able to understand you requirement..

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

  11. #11
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    I've attached the file in which A1 will have Location1, A2:A22 will have models beside which I want location name to be refered for this range, A23 will have location2, A24:A44 will have same models which are under location1 beside which I want to refer location2

    Issue is I just want to get this refered with formula with a simple drag & I'm not aware of VBA I need it with formula
    Attached Files Attached Files

  12. #12
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Fix a cell value for a certain range

    Put this in B2 and drag down

    =IF(LEFT(A2,8)="Location","Y",INDEX($A$1:$A$44,MAX(IF(ROW(A2)>IF(LEFT($A$1:$A$44,8)="Location",ROW($A$1:$A$44),""),IF(LEFT($A$1:$A$44,8)="Location",ROW($A$1:$A$44),""),""))))

    Or

    =IF(LEFT(A2,8)="Location",CHAR(87+COUNTIF($A$1:A2,"Location*")),INDEX($A$1:$A$44,SMALL(IF(LEFT($A$1:$A$44,8)="Location",ROW($A$1:$A$44),""),COUNTIF($A$1:A2,"Location*"))))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    Last edited by NeedForExcel; 11-20-2015 at 02:22 AM.

  13. #13
    Forum Contributor
    Join Date
    08-02-2015
    Location
    Hyderabad
    MS-Off Ver
    2007
    Posts
    160

    Re: Fix a cell value for a certain range

    Thanks for your time!!! I understood that this can be done with formula

    Please refer below link in which I've an attached file in which I need like this.

    http://www.excelforum.com/excel-form...f-columns.html

+ 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] Type Mismatch when switching from single cell Range value to multiple cell range value
    By Mr_Ekid in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-17-2015, 03:56 PM
  2. [SOLVED] if cell in range has formula equals cell in range on other worksheet
    By Little Guy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2015, 03:38 PM
  3. Replies: 6
    Last Post: 06-05-2014, 05:02 PM
  4. macro to find text string in cell range and paste in other cell range
    By slearner1 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 11:15 AM
  5. RE:- Write Macro to copy a 2 cell range to another 2 cell range down the columns
    By Eire001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-02-2013, 11:48 PM
  6. copy a range of cell values to another range of cells if one cell = 1
    By jamiepullen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2008, 10:26 AM
  7. Change cell colour for a cell or range within a predefined range
    By Martin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-23-2005, 02:06 PM

Tags for this Thread

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