+ Reply to Thread
Results 1 to 13 of 13

Fill out different cells based on value in one cell

  1. #1
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Fill out different cells based on value in one cell

    Hello to everyone,
    This is my first post here, and I hope that you can help me.
    For example. If cell K20 is 5g I want to automatically fill out
    other cells A40=50 , A41=100 , A42=1000 , A43=2500 .....?
    Ive attached a table how it looks like.

    Thanks
    Attached Files Attached Files

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

    Re: Fill out different cells based on value in one cell

    Not sure why you have attached a Word document - it would be more helpful to attach a sample Excel workbook.

    Pete

  3. #3
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Re: Fill out different cells based on value in one cell

    rather than a word doc - why not attach the spreadsheet ?

    or is this a word question ?

    What happens if K20 is not 5g
    and does K20 have the text 5g or 5 the number in it ?
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    Sorry guys, Here is the blank workbook. I didnt wont to bother you with
    the whole workbook. K20 need to have letter next to the number. It could be
    1g(gram), 2g, 5g, 10g and it also could be 1/2g, 2/5g , 5/10g but that for later.
    Based on that criteria I want that other cells fills out automatically. You will
    see in the workbook example for 5g. For other value in K20 cell other cells will have
    different values. This workbook is for testing the scales.

    Thanks
    Attached Files Attached Files

  5. #5
    Forum Expert sourabhg98's Avatar
    Join Date
    10-22-2014
    Location
    New Delhi, India
    MS-Off Ver
    Excel 2007, 2013
    Posts
    1,899

    Re: Fill out different cells based on value in one cell

    On what pattern we should decide the values 50, 100, 1000 ....etc??
    Please specify how should these be calculated from the input "5g".
    Happy to Help

    How to upload excel workbooks at this forum - http://www.excelforum.com/the-water-...his-forum.html

    "I don't get things easily, so please be precise and elaborate"

    If someone's post has helped you, thank by clicking on "Add Reputation" below the post.
    If your query is resolved please mark the thread as "Solved" from the "Thread Tools" above.

    Sourabh

  6. #6
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Re: Fill out different cells based on value in one cell

    wasn't really after a blank workbook

    Would like to see an example of your data and also a manual mock up of the expected results you want to achieve.

    It could be
    1g(gram), 2g, 5g, 10g and it also could be 1/2g, 2/5g , 5/10g but that for later.
    dont leave anything for later as that may change the whole formula and waste a lot of peoples time here

    can you mock up some examples of different values and what the results should be

  7. #7
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    That is also a little bit problem. It also depends on Max and these values are points of
    testing the scale and they are always different. For example. If max is 15kg and e is 5g
    the points will be (50,100,1000,2500,5000,10000,15000). If max is 30kg and e is 10g the
    points will be(100,200,1000,5000,10000,20000,30000). The required points of testing are.
    1. 10*K20
    2. Min
    3. 500*K20
    4. 2000*k20
    5. Max
    But withing these points I may choose some that I want because I need to have it between 5 and 10.

  8. #8
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    OK Etaf I will fill out the whole workbook for example.

  9. #9
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,797

    Re: Fill out different cells based on value in one cell

    sorry - dont need the whole workbook
    just the data you are entering and the results you expect
    and then some examples of different results and the rules that apply

    any rules would help
    If max is 15kg and e is 5g
    the points will be (50,100,1000,2500,5000,10000,15000). If max is 30kg and e is 10g the
    points will be(100,200,1000,5000,10000,20000,30000). The required points of testing are.
    1. 10*K20
    2. Min
    3. 500*K20
    4. 2000*k20
    5. Max
    as i think you may have done here

    But I have to admit - i'm still unclear of the rules to apply to a formula

  10. #10
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    Here is the complete workbook. In all
    three sheet, columns named with:
    L are the values that we specifies
    I is the indication on scales that we type in
    ΔL –additional load to next changeover point
    E - error we use the formula to count it. Im already using it. You will see.
    Ec - correction error with zero error also use a formula.
    NDG - Allowed error for that point of testing

    I know its a complicated especially for you that you see this pattern for
    the first time so i will try to explain it to you on the best possible way.
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    One more thing. I havent use the letters in my example because
    my formulas wont work that way. It should be letters next to the
    numbers. 15 kg, 100g, 5g , 5g

  12. #12
    Registered User
    Join Date
    04-30-2015
    Location
    Belgrade
    MS-Off Ver
    Office 10
    Posts
    7

    Re: Fill out different cells based on value in one cell

    No any ideas?

  13. #13
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,681

    Re: Fill out different cells based on value in one cell

    As to post #11: to get the values to show as grams go to the Home tab > Number pane. From the drop down choose 'More number formats' > custom > type: 0 "g" (for integers), 0.0 "g" (for decimals to the tenths) or 0.00 "g" (for decimals to the hundredths) etc. As to the pattern and its relationship to the value of cell K20 ("First" sheet) it seems that you want a formula that will fill in the values for cells A40:A47 (guessing). I don't see enough of a pattern to do that, my thinking is that each cell will need its own formula similar to your list in post #7.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Fill above cells and end based on a cell value
    By kasun in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-07-2015, 01:50 AM
  2. Fill Cells based on another cell value
    By Blokeman in forum Excel Programming / VBA / Macros
    Replies: 16
    Last Post: 08-03-2014, 08:19 AM
  3. auto fill cells based on 1st cell
    By teagranny in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-03-2014, 09:36 AM
  4. How to fill cells with text based on a cell value
    By kgfromthemv in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-07-2014, 04:53 PM
  5. Replies: 7
    Last Post: 12-05-2013, 04:06 PM
  6. Fill in cells based on other cell values
    By BrettW in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-21-2009, 11:46 AM
  7. Fill set number of cells based on cell value
    By HarveyDickinson in forum Excel General
    Replies: 1
    Last Post: 09-10-2009, 10:45 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