+ Reply to Thread
Results 1 to 16 of 16

based on 2 input values ,- output range of values in separate column

  1. #1
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    based on 2 input values ,- output range of values in separate column

    Hi all .
    I am new in the forum and totaly new to excel . Need some some help if posible .

    What i am trying to do is to input two values and based on theese values ,- excel should output a range of values in a new row.
    In example worksheet i use cells C4 and C5 =AVERAGEIF(A2:A22;A3:A10;B2:B22) . As an example i need excell output values from A3 to A10 ,inputing A3:A10 manualy works great and gives all the values that i need .
    The Problem is that i would like to make excel use input values from other cells for example E3:E5 .
    And would be able to change data in cells E4 and E5. Based on input values from cells E4 and E5 ,Excel should automaticaly select and return coresponding values .
    Not sure that i am using corect formula here . But thats the best i could find . Excel has way to many features for newbies to be aware of .
    So please help if you can !
    Thanks in advance ROWS (1) (1).xlsx
    Last edited by Benny77; 10-22-2023 at 10:05 AM. Reason: Additional info

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Change commas to semi-colons.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    Wow that was fast.
    Thanks a lot TMS .
    Such a simple thing to do but i would newer come up with this myself .
    Thanks a lot again mate

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,473

    Re: based on 2 input values ,- output range of values in separate column

    hi Benny77

    I don’t understand. What’s your purpose in using AVERAGEIFS? If you want a list, you can use this formula directly.

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


    AVERAGE
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by wk9128; 10-21-2023 at 03:52 PM.

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    You're welcome.


    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    Thanks for the rep.

  7. #7
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    Thanks for reply wk9128
    I am not an excel user so its the best what i could come up with
    Il try your code tomorow .
    I would probaly need to split and rearange the data . Dont know if i should open a new thread or can just post in this thread ?
    Last edited by Benny77; 10-21-2023 at 04:03 PM. Reason: additional info

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    This one
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    produces the same result as your original formula.

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,473

    Re: based on 2 input values ,- output range of values in separate column

    @Benny77 You're Welcome. Glad to help . Thank You for the feedback and rep.

  10. #10
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    Alright guys . Provided solution have worked but i need to modify selection and outputdata a bit. At the moment excel is outputing data based on a row numbers.
    Is it posible to output data based on information in the cells ?
    Lets say i want to output range of data from column A, form 3,25 to -3,25 and coresponding data in that row in column B .
    Input data for selection range would be in the cells E9;E10 .
    Now theres another problem .
    Lets say i put data into cells E9;E10 which would corespond to values of 3 and -3 . But the data in row A would have only value of 3,25 and -3,25.
    How can i mak excel choose coresponding values ? I asume the digits can be rounded to full digit, but i would rather use more acurate option if there is one .
    Please share your ideas of how can i solve this .
    I have reloaded workbook in post 1
    Thanks

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    With 3.25 and -3.25 in the cells E9:E10, you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    Works like a charm.
    Last question .
    How can i put this data into a graph to be axisymetrical in X axis and show all the points from row A ?
    If i put values from 10 to -10 i get nice symetrical graph .
    But if i put lets say 3 to -3 the graph shifts .
    The forum helped me way more than i expected and your input saved me hours of trying to make excell do what i needed .
    TMS thank so much.
    reloaded the excell file in post 1
    Last edited by Benny77; 10-22-2023 at 10:02 AM.

  13. #13
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    Charts aren't really my strength.

    But, you have
    X-Values: =Sheet1!$A$2:$A$22
    Y-Values: =Sheet1!$C$2:$C$22

    Not sure that using column C is appropriate but, then, what do I know?

    If I set the minimum and maximum X-Axis bounds to 2 and 12 respectively, I get a symmetrical graph.

  14. #14
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    The whole point is to input data into rows A and B.
    Than based on this data output a chosen range of data into a row C and than plot this data into axisymetrical graph .
    Scaling x axis is abit diferent thing.
    If someone would add some extra information it would be great .
    But Like i said i got more help than i actualy hoped for so i am more than hapy and cant ask for anything more .
    Have a nice evening and good start into next week .

  15. #15
    Registered User
    Join Date
    10-21-2023
    Location
    Germany
    MS-Off Ver
    Pro Plus 2021
    Posts
    19

    Re: based on 2 input values ,- output range of values in separate column

    Little update .
    I made one more column and used formula provided by member TMS =FILTER(B9:B15,(A9:A15<=E9)*(A9:A15>=E10)) to make a extra row for making symetrical graph.
    Thanks thanks thanks !!!

  16. #16
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,541

    Re: based on 2 input values ,- output range of values in separate column

    Again, you're welcome. Thanks for the rep.

+ 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] Output a unique list based on a range with duplicate values
    By carlito2002wgn in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2022, 05:40 PM
  2. Replies: 1
    Last Post: 12-08-2021, 06:42 PM
  3. VBA find unique values from input multiple column to output new column
    By lotto009 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-30-2020, 12:50 AM
  4. Replies: 4
    Last Post: 10-17-2017, 01:45 PM
  5. Assign values to categories of values based on separate column attribute.
    By jenbot83 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-06-2017, 02:17 PM
  6. [SOLVED] Display values based on input / output table
    By zdimitrov in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 09:12 PM
  7. Adding Values Based on a Separate Column
    By binder in forum Excel General
    Replies: 2
    Last Post: 02-14-2005, 04:06 PM

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