Put a total in a moving address

StanSchroeder

New Member
Joined
Sep 22, 2011
Messages
2
Column A B C D E F
482201 Douglas $20.00 7/1/11 C 7
...
...
... 482204 Douglas $35.00 8/2/11 D 7



Mr Douglas paid $20.00. I want that amount to go into another sheet
at C7. Now next time his payment should go into D7. I have generated
the C and the 7 and have no problem generating the next address of D 7.

I was looking at = IF ( c3>0, sheet1! n1 n2,"" )

C3 is where the $20.00 is located.
N1 is the result from column E
N2 is the result from column F

by combining N1 & N2 I get the address of where to send the $20.00

so by formula I would get: = IF ( c3>0, sheet1! C7,"" )

How do I take the results Found in Columns E and F and make them part of my IF statement?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
A formula cannot "send" a value to another cell. A formula can only return or calculate a value to the cell that the formula is located in.

You could do it the other way around. Have on Sheet1 in Cell C7 a formula that looks up the 1st instance if Douglas and return its value from the data sheet column C. Then in cell D7, a formula that looks up the 2nd instance of Douglas and return its value...etc.


<b>Data</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>A</th><th>B</th><th>C</th><th>D</th><th>E</th><th>F</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">1</td><td style="text-align: right;;">482201</td><td style=";">Douglas</td><td style="text-align: right;;"> $ 20.00 </td><td style="text-align: right;;">7/1/2011</td><td style=";">C</td><td style="text-align: right;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">2</td><td style="text-align: right;;"></td><td style=";">Smith</td><td style="text-align: right;;"> $ 11.00 </td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">3</td><td style="text-align: right;;"></td><td style=";">Smith</td><td style="text-align: right;;"> $ 12.00 </td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">4</td><td style="text-align: right;;">482204</td><td style=";">Douglas</td><td style="text-align: right;;"> $ 35.00 </td><td style="text-align: right;;">8/2/2011</td><td style=";">D</td><td style="text-align: right;;">7</td></tr><tr ><td style="color: #161120;text-align: center;">5</td><td style="text-align: right;;"></td><td style=";">Smith</td><td style="text-align: right;;"> $ 13.00 </td><td style="text-align: right;;"></td><td style="text-align: right;;"></td><td style="text-align: right;;"></td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet2</p><br /><br />

<b>Lookup Results</b><table cellpadding="2.5px" rules="all" style=";background-color: #FFFFFF;border: 1px solid;border-collapse: collapse; border-color: #A6AAB6"><colgroup><col width="25px" style="background-color: #E0E0F0" /><col /><col /><col /><col /></colgroup><thead><tr style=" background-color: #E0E0F0;text-align: center;color: #161120"><th></th><th>B</th><th>C</th><th>D</th><th>E</th></tr></thead><tbody><tr ><td style="color: #161120;text-align: center;">5</td><td style="font-weight: bold;text-align: right;;"></td><td style="font-weight: bold;;">Instance</td><td style="font-weight: bold;text-align: right;;"></td><td style="font-weight: bold;text-align: right;;"></td></tr><tr ><td style="color: #161120;text-align: center;">6</td><td style="font-weight: bold;;">Name</td><td style="font-weight: bold;text-align: right;;">1</td><td style="font-weight: bold;text-align: right;;">2</td><td style="font-weight: bold;text-align: right;;">3</td></tr><tr ><td style="color: #161120;text-align: center;">7</td><td style=";">Douglas</td><td style="text-align: right;;"> $ 20.00 </td><td style="text-align: right;;"> $ 35.00 </td><td style=";">  </td></tr><tr ><td style="color: #161120;text-align: center;">8</td><td style=";">Smith</td><td style="text-align: right;;"> $ 11.00 </td><td style="text-align: right;;"> $ 12.00 </td><td style="text-align: right;;"> $ 13.00 </td></tr></tbody></table><p style="width:3.6em;font-weight:bold;margin:0;padding:0.2em 0.6em 0.2em 0.5em;border: 1px solid #A6AAB6;border-top:none;text-align: center;background-color: #E0E0F0;color: #161120">Sheet1</p><br /><br /><table cellpadding="2.5px" rules="all" style=";border: 2px solid black;border-collapse:collapse;padding: 0.4em;background-color: #FFFFFF" ><tr><td style="padding:6px" ><b>Array Formulas</b><table cellpadding="2.5px" width="100%" rules="all" style="border: 1px solid;text-align:center;background-color: #FFFFFF;border-collapse: collapse; border-color: #A6AAB6"><thead><tr style=" background-color: #E0E0F0;color: #161120"><th width="10px">Cell</th><th style="text-align:left;padding-left:5px;">Formula</th></tr></thead><tbody><tr><th width="10px" style=" background-color: #E0E0F0;color: #161120">C7</th><td style="text-align:left">{=IF(<font color="Blue">COUNTIF(<font color="Red">Sheet2!$B:$B,$B7</font>)<C$6, "", INDEX(<font color="Red">Sheet2!$C$1:$C$5,SMALL(<font color="Green">IF(<font color="Purple">Sheet2!$B$1:$B$5=$B7,ROW(<font color="Teal">$1:$5</font>)</font>),C$6</font>)</font>)</font>)}</td></tr></tbody></table><b>Entered with Ctrl+Shift+Enter.</b> If entered correctly, Excel will surround with curly braces {}.
<b>Note: Do not try and enter the {} manually yourself</b></td></tr></table><br />

The C7 formula is copied accross and down in cells C7:E8
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,946
Latest member
JoseDavid

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top