+ Reply to Thread
Results 1 to 11 of 11

Lookup formula in another sheet and multiple other operations..

  1. #1
    Registered User
    Join Date
    10-05-2022
    Location
    Canada
    MS-Off Ver
    Excel
    Posts
    7

    Lightbulb Lookup formula in another sheet and multiple other operations..

    Hello!
    My name is Riccardo. I'm asking your help to write an excel formula which should include many functions in one formula.. which is very tricky

    Basically, I cannot post any screenshot for privacy of data but i will try to summarize it in words! My situation is kind of:

    Sheet 1

    ------A----------B----------C
    1 [Value1] [Name1] [Empty1]
    2 [Value2] [Name2] [Empty2]
    3 [Value3] [Name3] [Empty3]

    Sheet 2

    -------A--------B(Min)------C(MAX)............G
    1 [Name1] [m.Value1] [M.Value1] ... [$Value1]
    2 [Name1] [m.Value2] [M.Value2] ... [$Value2]
    3 [Name2] [m.Value3] [M.Value3] ... [$Value3]


    I need a function or a formula that can place in Sheet 1 [Empty1] a value from Sheet2

    -> Go [Sheet 2] and match the [Name Sheet 1] with [Name Sheet 2]

    -> If the name is the same then return on [Sheet 1] and find the associated [Value]

    -> Take the [Value] from Sheet1 and look if [Value Sheet 1] is less then or equal to [M.Value1] and is greater than or equal to [m.Value1] in Sheet 2

    -> If it's in the range m.Value1 =< Value1 >= M.Value1 then move XX cells in Sheet 2 from the [Name] and insert in [Empty1] the value of [$Value1]


    I know! It's really tricky and I will understand if there will be no way to do that, I'm having a headache about it and thought only you guys could help me out.
    I really recognize the complexity of the formula which I think includes several vlookups but it is not possible to do more than one.
    I have searched a lot on the internet too but being my very specific need I can not find anything.
    I hope you can help me with the formula or direct me to a guide that I can follow.

    Many thanks in advance!!!
    Last edited by ciccardo; 10-05-2022 at 07:08 PM.

  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,354

    Re: Lookup formula in another sheet and multiple other operations..

    I understand that you cannot post the live file. However, for anyone to develop a practical solution, you DO NEED to produce an anonymised sample file with some typical values AND your expected results.

    I'm sure it is doable BUT give us something to work with.
    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-05-2022
    Location
    Canada
    MS-Off Ver
    Excel
    Posts
    7

    Re: Lookup formula in another sheet and multiple other operations..

    Thank you for replying TMS!

    OK! I prepared an anonymised sample file!
    So, there are SHEET 1 and SHEET 2

    My goal would be filling the column [$$$ SHEET 1] with the values in [$$$ SHEET 2] but only after the check of the [NAME] and the confront of the [VALUE] near the name in sheet 1 with the range of [BEGIN CONCAT.] =< [VALUE (from sheet 1)] >= [END CONCAT.]. Then as above mentioned the formula should go to the associated [$$$ SHEET 2] value and insert it in the [$$$ SHEET 1] cell.

    What a mess! sorry if I was not clear but its really tricky for me and I remain available for any clarifications!

    Thank you so much!
    Last edited by ciccardo; 10-06-2022 at 12:42 PM.

  4. #4
    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,354

    Re: Lookup formula in another sheet and multiple other operations..

    See if this works for you:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-05-2022
    Location
    Canada
    MS-Off Ver
    Excel
    Posts
    7

    Re: Lookup formula in another sheet and multiple other operations..

    Sadly it doesn't work, but it does something!! Thank you for replying again TMS!

    I will post a second file updated with your formula and some comments near reporting the value that should be there so that maybe it can guide you better.

    Thank you!
    Last edited by ciccardo; 10-06-2022 at 12:41 PM.

  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,354

    Re: Lookup formula in another sheet and multiple other operations..

    Yes, I have been thinking about it. Using CONCAT gives you text values and you cannot do numeric comparisons of text values. Might need to change either the cells to real dates or try to change the formula to cope.

  7. #7
    Registered User
    Join Date
    10-05-2022
    Location
    Canada
    MS-Off Ver
    Excel
    Posts
    7

    Thumbs up Re: Lookup formula in another sheet and multiple other operations..

    EDIT:

    I added in extra columns to turn years and month into actual dates that are numbers that can be compared and IT WORKS!!!

    TMS thank you so much!
    Last edited by ciccardo; 10-05-2022 at 07:06 PM.

  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,354

    Re: Lookup formula in another sheet and multiple other operations..

    I have changed the CONCAT formulae on both sheets to use DATE. NOTE the end date also use EOMONTH.

    See if this works for you.
    Attached Files Attached Files

  9. #9
    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,354

    Re: Lookup formula in another sheet and multiple other operations..

    You're welcome. Thanks for the rep.

    Beat me to it

    Do you need extra columns? Or can you use the approach that I suggested?

  10. #10
    Registered User
    Join Date
    10-05-2022
    Location
    Canada
    MS-Off Ver
    Excel
    Posts
    7

    Re: Lookup formula in another sheet and multiple other operations..

    Hei TMS!
    Riccardo here still thanking you a lot because this formula works like a charm.

    I would ask you if you have two minutes of time to explain me better the use of SUM in the formula and the syntax you used with filter so I maybe can understand better the formula making process and maybe I can use the notion you will give me in my next formula!

    Thank you again TMS!

  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,354

    Re: Lookup formula in another sheet and multiple other operations..

    Hi. You don't actually need the SUM. In the original attempt, I was returning more than one entry. So I chose to sum them. I also tried TRANSPOSING them. However, when we fixed the dates, it became redundant.

    So:

    =IFERROR(
    FILTER('SHEET 2'!$W$2:$W$23, . . . Range to filter . . . the values you want to return
    ('SHEET 2'!$A$2:$A$23=D2)* . . . . . First condition . . . . . }
    ('SHEET 2'!$F$2:$F$23<=C2)* . . . . Second condition . . . } multiplied together
    ('SHEET 2'!$I$2:$I$23>=C2)), . . . . Third condition . . . . . }
    "no entries") . . . . . . . . . . . . . . . . . Text/value to return if there is an error (typically, no matches: #CALC)

+ 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. Need Formula to perform3 operations for multiple cells
    By Lois Goodsell in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-25-2020, 03:27 PM
  2. [SOLVED] Lookup formula to match a value in a range of multiple columns of another sheet
    By prettyann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-02-2019, 07:50 AM
  3. multiple operations in one column
    By jojoterrible in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-02-2015, 11:48 AM
  4. [SOLVED] Formula to lookup and return multiple results horizontally sheet 1 and 2
    By Chris1234567 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2014, 11:17 AM
  5. [SOLVED] multiple operations
    By seshultz in forum Excel General
    Replies: 6
    Last Post: 07-09-2012, 10:18 PM
  6. Worksheet lookup/match and other operations
    By Paulthenovice in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-26-2011, 11:53 AM
  7. Excel 2007 : Multiple operations formula
    By kfcoltn in forum Excel General
    Replies: 3
    Last Post: 07-26-2010, 05:57 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