+ Reply to Thread
Results 1 to 8 of 8

Using two ranges to calculate and return results

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Using two ranges to calculate and return results

    Ok, this is tricky for me:

    As you can see (in the sample file) there are two sheets in the workbook.
    The worksheet "TOTALS" lists values calculated by worksheet "PRICES".

    What I want to do is this: For each value in column W (from W10 and below) & each date in column X (from X10 and below) I want to calculate AF18, paste it in column Y (from Y10 and below) and continue with the next values until no values.
    Each value from W range and each date in X range must be entered in formulas in "AB9:AF18" but "AB9:AF18" must not necessarily be on the same sheet.

    "AB9:AF18" calculates tax for each period of time between X date and today (E3) based on specific tax percentages (AD10:AD14) for specific periods of time (AB10:AC15).

    Any help would be greatly appreciated!
    Thanks!

    PRICES2013_B.xlsm

  2. #2
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Using two ranges to calculate and return results

    Anyone out there?
    Not even a hint?

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Using two ranges to calculate and return results

    Pl see attached file with formula.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Using two ranges to calculate and return results

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see attached file with formula.
    This is very nice and simple (simple is better)
    Many thanks!

    BUT...

    What if ranges "Y10:Y" and/or "AB10:AF" were considerably larger? Then we would end up with an extra-extra long formula (in "Y10:Y") to repeat. Right?

    So, in that case would it be possible to use a macro to accomplish same results?

    Thanks in advance. Your reply is much appreciated!

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Using two ranges to calculate and return results

    In the formula Range AB10:AD14 is only used , which is same irrespective of your Y column range. Columns AE & AF are not required for formula.
    The formula in Y10 is simply dragged down. No need to retype.
    I feel Formula is better than Macro.

  6. #6
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Using two ranges to calculate and return results

    Quote Originally Posted by kvsrinivasamurthy View Post
    In the formula Range AB10:AD14 is only used , which is same irrespective of your Y column range. Columns AE & AF are not required for formula.
    The formula in Y10 is simply dragged down. No need to retype.
    I feel Formula is better than Macro.

    Ok, I totally get you and I saw that AE & AF were reduntant. What I said (perhaps I didn't made myself clear) is that if -for example- the range was AB10:AD50 (with 41 different time periods) then the formula in Y column would be huge because each one of the AB:AC time frames would have to be checked.
    This is more than a scenario because I may have to enter AD values prior to AB10:AC10 period.

    BUT, still your solution was lifesaving

  7. #7
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Using two ranges to calculate and return results

    Pl see i have changed formula to suit your requirement.
    Pl see the attached file.Previous formula also retained for comparison.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 10-31-2013 at 04:51 AM.

  8. #8
    Registered User
    Join Date
    02-01-2013
    Location
    Greece
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Using two ranges to calculate and return results

    Quote Originally Posted by kvsrinivasamurthy View Post
    Pl see i have changed formula to suit your requirement.
    Pl see the attached file.Previous formula also retained for comparison.
    Thanks a lot for your prompt replies and your valuable help!

+ 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. Replies: 9
    Last Post: 06-27-2018, 12:15 PM
  2. [SOLVED] Return value if within range, return multiple values if ranges overlap
    By cde1983 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-17-2013, 06:16 AM
  3. Replies: 2
    Last Post: 08-16-2013, 10:18 AM
  4. Replies: 6
    Last Post: 10-11-2012, 02:39 PM
  5. how to calculate daily return to monthly return
    By wuruonan in forum Excel General
    Replies: 1
    Last Post: 05-27-2010, 08:19 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