Budmustang

Discussion in 'Bulletin Board' started by Tobys Knackers, May 7, 2021.

  1. Tob

    Tobys Knackers Well-Known Member

    Joined:
    Aug 8, 2011
    Messages:
    879
    Likes Received:
    1,316
    Style:
    Barnsley Dark
    Going back a long way - like 2007 back - you helped me with with some complicated excel functions.

    Are you up for a bit more help? And if so would you drop me a PM with your current email address.

    I'm having a mental block on something and no amount of reading help pages is helping!
     
  2. Don

    Donny-Red Well-Known Member

    Joined:
    Sep 1, 2018
    Messages:
    5,766
    Likes Received:
    7,785
    Gender:
    Male
    Style:
    Barnsley (full width)
    What kind of problem?
     
  3. Tob

    Tobys Knackers Well-Known Member

    Joined:
    Aug 8, 2011
    Messages:
    879
    Likes Received:
    1,316
    Style:
    Barnsley Dark
    Honestly, I'd struggle to explain in words, but will give it a go.

    I have a table that contains numeric values from 1960 through to 2020. These values will change depending upon certain drop down selections by the user - that's all fine.

    I have another table where the user enters employment dates so, from 1970 to 1975, does job X for Y length of time. That works out another value using vlookups from a third table and depending on other criteria calculates a value.

    However, someone may be doing more than one role at different times. So one line might be:

    70 - 78 - Role A - Calculated Value X
    75 - 78 - Role B - Calculated Value Y

    Then on my separate Table I have:

    1968 - Limit -
    1969 - Limit -
    1970 - Limit -

    Etc, etc.

    I want to say for each individual year -

    If this line falls within the year range on the other Table, take the calculated value from that table and compare it with the limit.

    Where there are more than one role in a given year, aggregate them.

    I can't use sumproduct as the other table isn't set out as:

    1960
    1961
    1962

    And nor can it be from an end user perspective.

    A pivot table may do it but I still wouldn't know how to turn a range of say 70-75 into 1970, 1971, 1972 etc, etc - and as I then have to arse about refreshing the pivot every time new data goes in I don't want to do that.
     
    Donny-Red likes this.
  4. Sim

    Simon De Montforte Well-Known Member

    Joined:
    Nov 14, 2009
    Messages:
    5,345
    Likes Received:
    4,793
    Style:
    Barnsley (full width)
    I bet he wished he'd never asked now lol
     
  5. Tob

    Tobys Knackers Well-Known Member

    Joined:
    Aug 8, 2011
    Messages:
    879
    Likes Received:
    1,316
    Style:
    Barnsley Dark
    That's what I thought as I typed it - but felt rude not to answer!!
     
  6. Bossman

    Bossman Well-Known Member

    Joined:
    Jan 8, 2009
    Messages:
    15,017
    Likes Received:
    14,168
    Gender:
    Male
    Location:
    Carlton
    Style:
    Barnsley (full width)
    Wow! I can’t believe you need help with something as simple as that,
     
  7. Mr C

    Mr C Well-Known Member

    Joined:
    Aug 9, 2011
    Messages:
    24,964
    Likes Received:
    15,739
    Occupation:
    Saving the world.
    Location:
    Wentworth
    Style:
    Barnsley (full width)
    I need help too. Getting my hands on one of these.. :(
    56F8CB28-BAC5-4E02-A73A-8551A8BD5A0E.jpeg
     
  8. Don

    Donny-Red Well-Known Member

    Joined:
    Sep 1, 2018
    Messages:
    5,766
    Likes Received:
    7,785
    Gender:
    Male
    Style:
    Barnsley (full width)
    Blimey:eek:
    I think if I was sent it at work on Monday morning I’d come up with something (probably inelegant)
    But I’m afraid I’m not nerdy enough to give up my weekend at my age. Sorry, thought it might have been a bit simpler.
     
  9. Don

    Donny-Red Well-Known Member

    Joined:
    Sep 1, 2018
    Messages:
    5,766
    Likes Received:
    7,785
    Gender:
    Male
    Style:
    Barnsley (full width)
    Have you tried nesting if statements?
     
  10. kestyke

    kestyke Well-Known Member

    Joined:
    Jul 26, 2005
    Messages:
    3,432
    Likes Received:
    1,708
    Location:
    In the chestnut tree cafe, waiting
    Style:
    Barnsley
  11. ronnieGlavinsB@stardSon

    ronnieGlavinsB@stardSon Well-Known Member

    Joined:
    May 30, 2012
    Messages:
    3,417
    Likes Received:
    4,665
    Location:
    Glasgow
    Style:
    Barnsley
    I haven't played about in excel for years and I'm a little unsure of the ask but potentially - and as a quick workaround - could you create a temporary table with your ranges and then lookup from that?

    Something like...

    Range, Year
    70 - 74, 1970
    70 - 74, 1971
    70 - 74, 1972
    70 - 74, 1973
    70 - 74, 1974
    75 - 79, 1975
    75 - 79, 1976
    75 - 79, 1977
    75 - 79, 1978
    75 - 79, 1979
     
  12. Tyke_67

    Tyke_67 Well-Known Member

    Joined:
    May 31, 2013
    Messages:
    15,064
    Likes Received:
    20,754
    Style:
    Barnsley (full width)
    Yer Daft Bugger! :D:D:D
     
    Bossman likes this.
  13. Old Goat

    Old Goat Well-Known Member

    Joined:
    Dec 15, 2017
    Messages:
    8,101
    Likes Received:
    14,982
    Style:
    Barnsley (full width)
    And they say accountants are boring...
     
    Tobys Knackers likes this.

Share This Page