Anyone know owt about Excel ... cos I'm stuck ...

Discussion in 'Bulletin Board ARCHIVE' started by Original Dazza, Jul 15, 2008.

  1. Ori

    Original Dazza New Member

    Joined:
    Jul 19, 2005
    Messages:
    853
    Likes Received:
    0
    I'm wanting to have a drop down/combi box that when a value is selected automatically populates a row of cells with default values that I have already set.

    I can find plenty on the net about getting it done in just one cell but I want to put information in at least six cells

    This is basically what I want to do:

    Select option A and cells A through F are completed like so:

    [​IMG]

    Then should I change to say option B A through F change values:</p>

    [​IMG] </p>

    </p>

    Can this be done?? Any info gratefully received. </p>
     
  2. Wes

    Westie Well-Known Member

    Joined:
    Jul 12, 2007
    Messages:
    2,720
    Likes Received:
    48
    Location:
    Up yours
    Style:
    Barnsley (full width)
    I'll get back 2 u tomorra nt
     
  3. budmustang

    budmustang Well-Known Member

    Joined:
    Jul 28, 2007
    Messages:
    5,708
    Likes Received:
    3,192
    Occupation:
    Engineer
    Location:
    Adelaide, SA
    Style:
    Barnsley Dark
    One way to do it...

    Use cell validation to create the pull down box. Use the list type to specify in all the possible values.

    Enter all the default values into a table (maybe on a hidden sheet).

    Use the lookup function to set the outputs to whatever it says in the table, based on the user's input.

    Hope this makes sense. Does it sound like it's what you were after?



    You could of course also use macros.
     
  4. Caz

    Cazi New Member

    Joined:
    Jul 16, 2005
    Messages:
    13,133
    Likes Received:
    1
    Location:
    A completely different planet to everybody else
    bugger! Keep forgetting about macros. Spent ages and ages trying to work out how to do a formula the other week. Bet it would have taken seconds with a Macro - doh!
     
  5. budmustang

    budmustang Well-Known Member

    Joined:
    Jul 28, 2007
    Messages:
    5,708
    Likes Received:
    3,192
    Occupation:
    Engineer
    Location:
    Adelaide, SA
    Style:
    Barnsley Dark
    Never mind

    Always better to achieve what you want without using macros if possible. The problem is macro references don't automatically update if say you move cells around. References in formulae do.
     
  6. Ori

    Original Dazza New Member

    Joined:
    Jul 19, 2005
    Messages:
    853
    Likes Received:
    0
    Possibly ...

    So long as values are assigned to certain cells depending upon the combo box option.

    For example if it can be set so:

    If option A is selected - A1=1;B1=2 etc
    If option B is selected - A1 =11; B1 =22 etc

    Then that's what I'm after.

    Never used the look-up function though, I'm guessing that would simply copy and paste from another table where they were all stored? If so, aye, that sounds like what I'm after.
     
  7. budmustang

    budmustang Well-Known Member

    Joined:
    Jul 28, 2007
    Messages:
    5,708
    Likes Received:
    3,192
    Occupation:
    Engineer
    Location:
    Adelaide, SA
    Style:
    Barnsley Dark
    Which version of Excel are you using?

    I'll send you an example if you like.
     
  8. Gue

    Guest Guest

    you can use named ranges to avoid macro limitations with references nt nt
     
  9. Ori

    Original Dazza New Member

    Joined:
    Jul 19, 2005
    Messages:
    853
    Likes Received:
    0
    RE: Which version of Excel are you using?

    Cheers that'd be great thanks ...

    I'm using 2002.

    Off to bath the screaming young 'un for half hour so please don't take any silence as lack of gratitude! - Be back once he's snoozing!
     
  10. budmustang

    budmustang Well-Known Member

    Joined:
    Jul 28, 2007
    Messages:
    5,708
    Likes Received:
    3,192
    Occupation:
    Engineer
    Location:
    Adelaide, SA
    Style:
    Barnsley Dark
    That you can

    Tha reyt. Still not fool-proof though.
     
  11. budmustang

    budmustang Well-Known Member

    Joined:
    Jul 28, 2007
    Messages:
    5,708
    Likes Received:
    3,192
    Occupation:
    Engineer
    Location:
    Adelaide, SA
    Style:
    Barnsley Dark
    Example

    Here it is (hopefully)...

    D'oh... that didn't work. I've sent it to your hotmail address.
     
  12. Ori

    Original Dazza New Member

    Joined:
    Jul 19, 2005
    Messages:
    853
    Likes Received:
    0
    RE: Example

    Cheers for the example - that's exactly what I'm trying to do.

    Although I've e-mailed you as when I try and redo in another worksheet it doesn't quite seem to work out.
     

Share This Page