LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Junior Member
 
Posts: 15
Default

Quote:
Originally Posted by Spencer101 View Post
Hi Sporenta,

Two quick questions:

1) Which version of Excel are you using? This will determine which formulas are to be used for this.

2) Any chance you could post an example with dummy data (i.e. replace card numbers with 111 and 222 etc. and spoof names if applicable. This will make it far easier to decipher the issue and far quicker to provide you with a solution.

Thanks.

Spencer.
Sure.

1) I'm using Excel 2007, Mac Version

2)

Column A Column B Column C Column D Column E Column F Column G
Row 1 Card Number Student Jan. Deposit Statement Card # $ Amount Sorted # Sorted $ Amount
Row 2 111 Tom 444 10
Row 3 222 Dick 555 10 222 10
Row 4 333 Harry 555 20
Row 5 444 George 555 10 444 10
Row 6 555 Henry 222 10 555 10

In this simplified example, my goal is to have the formula in column F sort out the numbers in column D (I already have a formula to do this), and have the formula in column G sort the values from column E, adding together the values for each instance of the card.

I made this example to show that the way I have the formula written now, Column G works fine EXCEPT in the instance of card 555. Because card 555 was used 3 times, once for $20 and twice for $10, cell H6 should read $40, but the way my formula's written now, it only reads the first instance of card 555, $20. Once I get the formula right, I plan to use column D-G as work space. I will paste raw data from monthly statements into columns D and E, columns F and G will sort and calculate, and I would then cut and paste the values from column G to the months deposit columns (in this example, column C).

For this example, the formulas would read:

Column F: =IF(ISNUMBER(MATCH(A2,D:D,0)),A2,"")
Column G: =IF(ISNUMBER(MATCH(A2,F:F,0)),OFFSET(INDIRECT("D"& MATCH(A2,D:D,0)),0,1,1,1),"")

I hope this is what you were looking for with a dummy example. If you'd like a truer reflection of what my sheet looks like, let me know.
 
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
multiple search results Art Excel Worksheet Functions 3 March 3rd 10 04:33 AM
Adding range search results to multi-column listbox Ken Warthen[_2_] Excel Programming 8 April 22nd 09 12:29 PM
multiple results from search / how to? ORLANDO V[_2_] Excel Discussion (Misc queries) 2 January 30th 08 03:10 PM
multiple results from search / how to? ORLANDO V[_2_] Excel Discussion (Misc queries) 0 January 29th 08 08:12 PM
Search with multiple results Sean Excel Programming 2 November 9th 06 05:07 PM


All times are GMT +1. The time now is 09:54 AM.

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

About Us

"It's about Microsoft Excel"