random cell recognition for formula

BlueDingo

New Member
Joined
Oct 19, 2009
Messages
42
I have a spreadsheet where I need the end result to be auto filled after recognition of an adhoc "top up" amount.
How do I get E7 (3170) to automatically recognise the insertion of C7 (3000) to give this result without having to manually update the formula in E7?

Thank you,
Regards, Pete

[TABLE="width: 342"]
<COLGROUP><COL style="WIDTH: 59pt; mso-width-source: userset; mso-width-alt: 2496" width=78><COL style="WIDTH: 57pt; mso-width-source: userset; mso-width-alt: 2432" width=76><COL style="WIDTH: 97pt; mso-width-source: userset; mso-width-alt: 4128" width=129><COL style="WIDTH: 69pt; mso-width-source: userset; mso-width-alt: 2944" width=92><COL style="WIDTH: 60pt; mso-width-source: userset; mso-width-alt: 2560" width=80><TBODY>[TR]
[TD="class: xl27, width: 78, bgcolor: #ffff99"]DATE[/TD]
[TD="class: xl24, width: 76, bgcolor: #ffff99"]PURCHASE
ORDER
[/TD]
[TD="class: xl24, width: 129, bgcolor: #ffff99"]PRODUCTIVE
HOURS against PO
[/TD]
[TD="class: xl24, width: 92, bgcolor: #ffff99"]HOURS USED[/TD]
[TD="class: xl24, width: 80, bgcolor: #ffff99"]HOURS
REMAINING
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]30-Aug-12[/TD]
[TD="class: xl26, bgcolor: transparent"]abc[/TD]
[TD="class: xl26, bgcolor: transparent"]2000[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]2000[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]01-Sep-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]490[/TD]
[TD="class: xl26, bgcolor: transparent"]1510[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]15-Sep-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]190[/TD]
[TD="class: xl26, bgcolor: transparent"]1320[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]22-Sep-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]600[/TD]
[TD="class: xl26, bgcolor: transparent"]720[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]02-Oct-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]550[/TD]
[TD="class: xl26, bgcolor: transparent"]170[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]11-Oct-12[/TD]
[TD="class: xl26, bgcolor: transparent"]xyz[/TD]
[TD="class: xl26, bgcolor: transparent"]3000[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]3170[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]15-Oct-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]200[/TD]
[TD="class: xl26, bgcolor: transparent"]2970[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]26-Oct-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]270[/TD]
[TD="class: xl26, bgcolor: transparent"]2700[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]01-Nov-12[/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"] [/TD]
[TD="class: xl26, bgcolor: transparent"]500[/TD]
[TD="class: xl26, bgcolor: transparent"]2200[/TD]
[/TR]
</TBODY>[/TABLE]
 
I have a spreadsheet where I need the end result to be auto filled after recognition of an adhoc "top up" amount.
How do I get E7 (3170) to automatically recognise the insertion of C7 (3000) to give this result without having to manually update the formula in E7?

Thank you,
Regards, Pete

[TABLE="width: 342"]
<TBODY>[TR]
[TD="class: xl27, width: 78, bgcolor: #ffff99"]DATE
[/TD]
[TD="class: xl24, width: 76, bgcolor: #ffff99"]PURCHASE
ORDER

[/TD]
[TD="class: xl24, width: 129, bgcolor: #ffff99"]PRODUCTIVE
HOURS against PO

[/TD]
[TD="class: xl24, width: 92, bgcolor: #ffff99"]HOURS USED
[/TD]
[TD="class: xl24, width: 80, bgcolor: #ffff99"]HOURS
REMAINING

[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]30-Aug-12
[/TD]
[TD="class: xl26, bgcolor: transparent"]abc
[/TD]
[TD="class: xl26, bgcolor: transparent"]2000
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]2000
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]01-Sep-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]490
[/TD]
[TD="class: xl26, bgcolor: transparent"]1510
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]15-Sep-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]190
[/TD]
[TD="class: xl26, bgcolor: transparent"]1320
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]22-Sep-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]600
[/TD]
[TD="class: xl26, bgcolor: transparent"]720
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]02-Oct-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]550
[/TD]
[TD="class: xl26, bgcolor: transparent"]170
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]11-Oct-12
[/TD]
[TD="class: xl26, bgcolor: transparent"]xyz
[/TD]
[TD="class: xl26, bgcolor: transparent"]3000
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]3170
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]15-Oct-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]200
[/TD]
[TD="class: xl26, bgcolor: transparent"]2970
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]26-Oct-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]270
[/TD]
[TD="class: xl26, bgcolor: transparent"]2700
[/TD]
[/TR]
[TR]
[TD="class: xl25, bgcolor: transparent"]01-Nov-12
[/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"][/TD]
[TD="class: xl26, bgcolor: transparent"]500
[/TD]
[TD="class: xl26, bgcolor: transparent"]2200
[/TD]
[/TR]
</TBODY>[/TABLE]

Looks like...

Control+shift+enter, not just enter:

=INDEX(E2:E100,MATCH(MAX(C2:100),C2:C100,0))

Note that this will return the E-value corresponding to the first instance max C-value.
 
Upvote 0
Try




Excel 2003
ABCDE
1DATEPURCHASEPRODUCTIVEHOURS USEDHOURS
2ORDERHOURS against POREMAINING
330-Aug-12abc20002000
41-Sep-124901510
515-Sep-121901320
622-Sep-12600720
72-Oct-12550170
811-Oct-12xyz30003170
915-Oct-122002970
1026-Oct-122702700
111-Nov-125002200
12
Sheet3
Cell Formulas
RangeFormula
E4=IF(C4>0,E3+C4,E3-D4)
E5=IF(C5>0,E4+C5,E4-D5)
E6=IF(C6>0,E5+C6,E5-D6)
E7=IF(C7>0,E6+C7,E6-D7)
E8=IF(C8>0,E7+C8,E7-D8)
E9=IF(C9>0,E8+C9,E8-D9)
E10=IF(C10>0,E9+C10,E9-D10)
E11=IF(C11>0,E10+C11,E10-D11)
 
Upvote 0
Looks like...

Control+shift+enter, not just enter:

=INDEX(E2:E100,MATCH(MAX(C2:100),C2:C100,0))

Note that this will return the E-value corresponding to the first instance max C-value.



Thank you Aladin, but not sure what cell this suppose to be entered into.
Have tried a few options, but am now OK with a result.
Again, thnk you
 
Upvote 0
Thank you Aladin, but not sure what cell this suppose to be entered into.
Have tried a few options, but am now OK with a result.
Again, thnk you

I apparently misread the question.

The following in E3 would work to:

E3, copied down:

=SUM(N(E2),-D3,C3)
 
Upvote 0

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