Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Cell to the left of an Index function result

Hi,

I have the following data:

Jan YTD Feb YTD Mar YTD
Acct#1 5 10 15
Acct#2 3 6 9
Acct#3 4 8 12


On a separate March analysis tab, using an
=Index(Range,Match(...),Match(...)) formula, I have pulled in the balance of
Acct #2 for Mar YTD. Now I would like to calculate the Mar MTD amount by
subtracting the Feb YTD balance. Do I have to do a second =Index formula to
pull the Feb YTD balance, or is there a function or formula that would simply
pick up and subtract the amount in the cell to the left my Acct#2, Mar YTD
Index result?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default Cell to the left of an Index function result

=INDEX(Range,MATCH(acct,Accts,0),MATCH(month,Month s,0))-INDEX
(Range,MATCH(acct,Accts,0),MATCH(month,Months,0)-1)

This allows you to refer to the same month in both MATCH that you use.
It is of course problematic for January, but you don't want a
difference for Jan.

You can also use OFFSET as in the following expression for Feb:

OFFSET(INDEX(Range,MATCH(acct,Accts,0),MATCH(month ,Months,0)),0,-1)

HTH
Kostis Vezerides

On Nov 24, 4:53*pm, JustBreathe
wrote:
Hi,

I have the following data:

* * * * * * Jan YTD * *Feb YTD * * Mar YTD
Acct#1 * * * 5 * * * * * * *10 * * * * * * 15
Acct#2 * * * 3 * * * * * * * 6 * * * * * * * 9
Acct#3 * * * 4 * * * * * * * 8 * * * * * * *12

On a separate March analysis tab, using an
=Index(Range,Match(...),Match(...)) *formula, I have pulled in the balance of
Acct #2 for Mar YTD. *Now I would like to calculate the Mar MTD amount by
subtracting the Feb YTD balance. *Do I have to do a second =Index formula to
pull the Feb YTD balance, or is there a function or formula that would simply
pick up and subtract the amount in the cell to the left my Acct#2, Mar YTD *
Index result?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default Cell to the left of an Index function result

Hi,

Here is one way:

=SUMPRODUCT(OFFSET(A1,MATCH(A10,A2:A4,0),MATCH(A9, B1:D1,0),,2)*{-1,1})

A1 is the top left corner above and to the left of Range in you example

If this helps, please click the Yes button

Cheers,
Shane Devenshire


"JustBreathe" wrote:

Hi,

I have the following data:

Jan YTD Feb YTD Mar YTD
Acct#1 5 10 15
Acct#2 3 6 9
Acct#3 4 8 12


On a separate March analysis tab, using an
=Index(Range,Match(...),Match(...)) formula, I have pulled in the balance of
Acct #2 for Mar YTD. Now I would like to calculate the Mar MTD amount by
subtracting the Feb YTD balance. Do I have to do a second =Index formula to
pull the Feb YTD balance, or is there a function or formula that would simply
pick up and subtract the amount in the cell to the left my Acct#2, Mar YTD
Index result?

Thanks

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Index left match or lookup??? Carrie New Users to Excel 2 July 29th 08 10:55 AM
I want result of a function in the cell and not the function itsel Rana Excel Worksheet Functions 4 July 2nd 07 06:20 AM
lookup value and return result in column to left Mark M Excel Worksheet Functions 3 April 23rd 06 07:47 PM
how to get left or right cell info after getting the result for ma Arumugam Ramachandra Excel Worksheet Functions 1 January 4th 06 03:19 PM
Formatting result of Index function ExcelFred Excel Worksheet Functions 5 July 26th 05 01:34 PM


All times are GMT +1. The time now is 04:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"