#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8
Default VLOOKUP

I have a column that contains the text "Total amount" multiple timesin
different rows. I need to use totals in these specific rows at different
times in a calculation. The list length varies every day as new rows are
added and deleted. The number of rows containing the text "Total amount" will
always remain the same. How can I instruct excel to find the applicable row
amongst all the rows that have the same text in the same column and that
varies on a daily basis in lenght?
--
H
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default VLOOKUP

One way is to use a helper col, then INDEX/MATCH on it ..

Assuming source data in cols A to J from row2 down
with "Total amount" phrases occurring in col A

Use an adjacent empty col to the right, say col K

In K2:
=IF(A2="Total amount",A2&COUNTIF($A$2:A2,A2),"")
Copy K2 down to cover the extent of expected source data. Col K will create
the additional identifiers: Total amount1, Total amount2, etc which could
then be used in an INDEX/MATCH.

For example, if you then list in N2 down:

Total amount1
Total amount2
Total amount3
etc

and you want to extract the corresponding col B values in the source
just place in O2: =INDEX(B:B,MATCH($N2,$K:$K,0))
and copy O2 down. As-is you could also then fill across to return corresp
values from col C, D, E ...
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Hutchy" wrote:
I have a column that contains the text "Total amount" multiple times in
different rows. I need to use totals in these specific rows at different
times in a calculation. The list length varies every day as new rows are
added and deleted. The number of rows containing the text "Total amount" will
always remain the same. How can I instruct excel to find the applicable row
amongst all the rows that have the same text in the same column and that
varies on a daily basis in length?
--
H

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default VLOOKUP

Hi,

Let's say your workseet is like below:

A B

1 Total amount 180.69
..
..
20 Total amount 582.69
..
..
100 Total amount 1589.25
..
..

and you want to sum all figurs in column B that has "Total amount" in
approprate Cell in column A

so you have to enter this formula:

=SUMIF(A1:A100,"Total amount",B1:B100)

A100 and B100 are for this example and they can change to for example A1000
and B1000

Thanks,
--
Farhad Hodjat


"Hutchy" wrote:

I have a column that contains the text "Total amount" multiple timesin
different rows. I need to use totals in these specific rows at different
times in a calculation. The list length varies every day as new rows are
added and deleted. The number of rows containing the text "Total amount" will
always remain the same. How can I instruct excel to find the applicable row
amongst all the rows that have the same text in the same column and that
varies on a daily basis in lenght?
--
H

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
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
IF(a1="x",(vlookup 18K rows,2,false),(vlookup 18K,3,false)) RAM? bchilt Excel Worksheet Functions 6 January 20th 06 09:21 AM
IF(AND(val1=VLOOKUP( );val2>=VLOOKUP( );val2<=VLOOKUP( );VLOOKUP( Oso Excel Worksheet Functions 2 January 26th 05 06:56 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 04:21 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"