Index formula

josros60

Well-known Member
Joined
Jun 27, 2010
Messages
786
Office Version
  1. 365
Hi,

i have this table and this formula,

Code:
=INDEX(Sheet1!D2:D4,MATCH(Sheet1!C2,Sheet1!C2:C4,0)*MATCH(Sheet1!A2,Sheet1!A2:A4,0))

[TABLE="width: 244"]
<tbody>[TR]
[TD="width: 61"]ID[/TD]
[TD="width: 61"]DESC[/TD]
[TD="width: 61"]A/C #[/TD]
[TD="width: 61"]AMT[/TD]
[/TR]
[TR]
[TD="align: right"]133888[/TD]
[TD]VOICE[/TD]
[TD="align: right"]8883[/TD]
[TD="align: right"]545[/TD]
[/TR]
[TR]
[TD="align: right"]100300[/TD]
[TD]IP[/TD]
[TD="align: right"]9833[/TD]
[TD="align: right"]800[/TD]
[/TR]
[TR]
[TD="align: right"]100358[/TD]
[TD="colspan: 2"]INTERNET[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
</tbody>[/TABLE]

how can modify it that if a/c # is blank still get the amount base on id column #.

thanks,
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
I don't think that formula will do what you want. See if this does, where 1234 is your base amount.


Book1
ABCDEFGH
1IDDESCA/C #AMTIDA/C #AMT
2133888VOICE888354510035877771234
3100300IP98338001338888883545
4100358INTERNET#N/A1003009833800
Sheet1
Cell Formulas
RangeFormula
H2=IFERROR(1/(1/(SUMIFS(D:D,A:A,F2,C:C,G2))),1234)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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