Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default multiple criteria statement

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be returned.

I cant use a macro / VB because my client has an older version of Excel and
it will not take.

Appreciate any help!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default multiple criteria statement

You could use a "helper" column on Sheet1 containing the concatenated
content of columns C and D.
Then use vlookup on that column.

Tim


"Monish" wrote in message
...
I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be
returned.

I cant use a macro / VB because my client has an older version of Excel
and
it will not take.

Appreciate any help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default multiple criteria statement

Another possibility:
=INDEX(Sheet1!F1:F1500, MATCH(ValueA&" "&ValueB, Sheet1!C1:C1500&"
"&Sheet1!D1:D1500, 0))

commited with Cntrl+Shift+Enter

"Monish" wrote:

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be returned.

I cant use a macro / VB because my client has an older version of Excel and
it will not take.

Appreciate any help!

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default multiple criteria statement

Thanks guys - I will try both ways...I am trying to establish an automated
process where they would simply paste in Sheet 1 data from a database output
I am setting up for them and the report tabs would be populated...so I may
hard code and protect the concatenated column?
....also, JMB: what do you mean by "commited with Cntrl+Shift+Enter"?

"JMB" wrote:

Another possibility:
=INDEX(Sheet1!F1:F1500, MATCH(ValueA&" "&ValueB, Sheet1!C1:C1500&"
"&Sheet1!D1:D1500, 0))

commited with Cntrl+Shift+Enter

"Monish" wrote:

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be returned.

I cant use a macro / VB because my client has an older version of Excel and
it will not take.

Appreciate any help!

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default multiple criteria statement

I Kinda need the same thing i use excel 2002
the only problem is ctrl+alt+enter never works for me , i need to enable it
somewhere first ?


"Monish" wrote:

Thanks guys - I will try both ways...I am trying to establish an automated
process where they would simply paste in Sheet 1 data from a database output
I am setting up for them and the report tabs would be populated...so I may
hard code and protect the concatenated column?
...also, JMB: what do you mean by "commited with Cntrl+Shift+Enter"?

"JMB" wrote:

Another possibility:
=INDEX(Sheet1!F1:F1500, MATCH(ValueA&" "&ValueB, Sheet1!C1:C1500&"
"&Sheet1!D1:D1500, 0))

commited with Cntrl+Shift+Enter

"Monish" wrote:

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be returned.

I cant use a macro / VB because my client has an older version of Excel and
it will not take.

Appreciate any help!



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default multiple criteria statement

No. It is built in.

--
Regards,
Tom Ogilvy


"azoz" wrote in message
...
i meant ctrl+shift+enter

"azoz" wrote:

I Kinda need the same thing i use excel 2002
the only problem is ctrl+alt+enter never works for me , i need to enable
it
somewhere first ?


"Monish" wrote:

Thanks guys - I will try both ways...I am trying to establish an
automated
process where they would simply paste in Sheet 1 data from a database
output
I am setting up for them and the report tabs would be populated...so I
may
hard code and protect the concatenated column?
...also, JMB: what do you mean by "commited with Cntrl+Shift+Enter"?

"JMB" wrote:

Another possibility:
=INDEX(Sheet1!F1:F1500, MATCH(ValueA&" "&ValueB, Sheet1!C1:C1500&"
"&Sheet1!D1:D1500, 0))

commited with Cntrl+Shift+Enter

"Monish" wrote:

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell
returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria,
but I
cant think of how to call it and get another cell in that row to be
returned.

I cant use a macro / VB because my client has an older version of
Excel and
it will not take.

Appreciate any help!



  #7   Report Post  
Posted to microsoft.public.excel.programming
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default multiple criteria statement

When you type in the formula, instead of hitting Enter hold down the Control
and Shift keys, then hit Enter. Excel will put braces { } around the
formula (indicating it is an array formula). It does not work with entire
columns, such as A:A or A1:A65536 (for versions prior to 2007), but you could
use A1:A65535

For example:

=INDEX(Sheet1!F1:F65535, MATCH(ValueA&" "&ValueB, Sheet1!C1:C65535&"
"&Sheet1!D1:D65535, 0))

More discussion he
http://cpearson.com/excel/array.htm

Depending on how many formulae you need and how large the ranges are, array
formulae could adversely affect performance, so there is a trade off that
will need to be evaluated.


"Monish" wrote:

Thanks guys - I will try both ways...I am trying to establish an automated
process where they would simply paste in Sheet 1 data from a database output
I am setting up for them and the report tabs would be populated...so I may
hard code and protect the concatenated column?
...also, JMB: what do you mean by "commited with Cntrl+Shift+Enter"?

"JMB" wrote:

Another possibility:
=INDEX(Sheet1!F1:F1500, MATCH(ValueA&" "&ValueB, Sheet1!C1:C1500&"
"&Sheet1!D1:D1500, 0))

commited with Cntrl+Shift+Enter

"Monish" wrote:

I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be returned.

I cant use a macro / VB because my client has an older version of Excel and
it will not take.

Appreciate any help!

  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22
Default multiple criteria statement

What do I need if there are multiple rows which will meet the criteria and I
want the sum of each of these rows' value from column F?

Thanks!

"Tim Williams" wrote:

You could use a "helper" column on Sheet1 containing the concatenated
content of columns C and D.
Then use vlookup on that column.

Tim


"Monish" wrote in message
...
I have Sheet 1 with 1500 rows and 20 columns

On Sheet 2 I am trying to create a report where one row/cell returns:
Value in Column F from Sheet 1, but ONLY WHEN
Column C in Sheet 1 = Value A, AND
Column D in Sheet 2 = Value B

There will only be one row (among 1500) which meets both criteria, but I
cant think of how to call it and get another cell in that row to be
returned.

I cant use a macro / VB because my client has an older version of Excel
and
it will not take.

Appreciate any help!




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
IF Statement, multiple criteria chickalina Excel Worksheet Functions 2 May 12th 09 03:04 AM
If statement with multiple criteria and multiple results Tickfarmer Excel Discussion (Misc queries) 3 January 28th 09 08:11 PM
Multiple criteria if statement braydon16 Excel Discussion (Misc queries) 2 June 22nd 06 07:45 PM
Multiple if criteria in one statement (if/sumproduct) thekovinc Excel Discussion (Misc queries) 3 February 17th 06 08:22 PM
IF statement using multiple criteria Joe Gieder Excel Worksheet Functions 1 October 27th 05 09:11 PM


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

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

About Us

"It's about Microsoft Excel"