Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default poplulate cell based on two conditions

Need to fill a cell based on two conditions.
Compare a cell in worksheet A to column A in worksheet B, if found: compare
cell in worksheet B to row A, if found, populate orignal row and column (from
second compare) from cell xx (worksheet b).
IE: A2 (worksheet a) finds entry in column A, based on condition 1, C1
(worksheet b) finds entry in B1 (worksheet a) populate B2 (worksheet A) with
B2 (worksheet b).

ORIGNAL WORKSHEETS RESULTING
WORKSHEETS
worksheet a: worksheet b: workheet A:
A B C d A B C
A B C
1 iel01 iel02 iel03 igc019 5 iel01
iel01 iel02 iel03
2 igc019 igc019 2 iel03 igc019
5 2
3 uareit uareit 1 iel02 uareit
1
4 thatsit thatsit 1 iel01
thatsit 1 2 2
5 thatsit 2 iel02
6 thatsit 2 iel03


Thanks for any help you can provide.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default poplulate cell based on two conditions

Re- post example worksheets.
ORIGNAL WORKSHEETS
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019
3 uareit
4 thatsit
5
6
worksheet b:
A B C
1 igc019 5 iel01
2 igc019 2 iel03
3 uareit 1 iel02
4 thatsit 1 iel01
5 thatsit 2 iel02
6 thatsit 2 iel03

RESULTING WORKSHEET A:
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019 5 2
3 uareit 1
4 thatsit 1 2 2
5
6

"Scire" wrote:

Need to fill a cell based on two conditions.
Compare a cell in worksheet A to column A in worksheet B, if found: compare
cell in worksheet B to row A, if found, populate orignal row and column (from
second compare) from cell xx (worksheet b).
IE: A2 (worksheet a) finds entry in column A, based on condition 1, C1
(worksheet b) finds entry in B1 (worksheet a) populate B2 (worksheet A) with
B2 (worksheet b).

ORIGNAL WORKSHEETS RESULTING
WORKSHEETS
worksheet a: worksheet b: workheet A:
A B C d A B C
A B C
1 iel01 iel02 iel03 igc019 5 iel01
iel01 iel02 iel03
2 igc019 igc019 2 iel03 igc019
5 2
3 uareit uareit 1 iel02 uareit
1
4 thatsit thatsit 1 iel01
thatsit 1 2 2
5 thatsit 2 iel02
6 thatsit 2 iel03


Thanks for any help you can provide.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default poplulate cell based on two conditions

Put

=SUMPRODUCT((Sheet2!$A$1:$A$6=$A2)*(Sheet2!$C$1:$C $6=B$1)*(Sheet2!$B$1:$B$6))

in B2 and copy to the right and down as necessary. SUMPRODUCT works like
array formulas. For more info on array formulas, see
http://www.dailydoseofexcel.com/arch...array-formula/

--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com

Scire wrote:
Re- post example worksheets.
ORIGNAL WORKSHEETS
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019
3 uareit
4 thatsit
5
6
worksheet b:
A B C
1 igc019 5 iel01
2 igc019 2 iel03
3 uareit 1 iel02
4 thatsit 1 iel01
5 thatsit 2 iel02
6 thatsit 2 iel03

RESULTING WORKSHEET A:
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019 5 2
3 uareit 1
4 thatsit 1 2 2
5
6

"Scire" wrote:

Need to fill a cell based on two conditions.
Compare a cell in worksheet A to column A in worksheet B, if found:
compare cell in worksheet B to row A, if found, populate orignal row
and column (from second compare) from cell xx (worksheet b).
IE: A2 (worksheet a) finds entry in column A, based on condition 1,
C1 (worksheet b) finds entry in B1 (worksheet a) populate B2
(worksheet A) with B2 (worksheet b).

ORIGNAL WORKSHEETS
RESULTING WORKSHEETS
worksheet a: worksheet b:
workheet A: A B C d A B
C A B C
1 iel01 iel02 iel03 igc019 5 iel01
iel01 iel02 iel03
2 igc019 igc019 2 iel03
igc019 5 2
3 uareit uareit 1 iel02
uareit 1
4 thatsit thatsit 1 iel01
thatsit 1 2 2
5 thatsit 2 iel02
6 thatsit 2 iel03


Thanks for any help you can provide.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default poplulate cell based on two conditions

Thanks. This works, small correction
=SUMPRODUCT((Sheet2!$A$1:$A$6=$A2)*(Sheet2!$C$1:$C $6=$B$1)*(Sheet2!$B$1:$B$6))

I worked on this for two days.

"Dick Kusleika" wrote:

Put

=SUMPRODUCT((Sheet2!$A$1:$A$6=$A2)*(Sheet2!$C$1:$C $6=B$1)*(Sheet2!$B$1:$B$6))

in B2 and copy to the right and down as necessary. SUMPRODUCT works like
array formulas. For more info on array formulas, see
http://www.dailydoseofexcel.com/arch...array-formula/

--
Dick Kusleika
MS MVP - Excel
www.dailydoseofexcel.com

Scire wrote:
Re- post example worksheets.
ORIGNAL WORKSHEETS
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019
3 uareit
4 thatsit
5
6
worksheet b:
A B C
1 igc019 5 iel01
2 igc019 2 iel03
3 uareit 1 iel02
4 thatsit 1 iel01
5 thatsit 2 iel02
6 thatsit 2 iel03

RESULTING WORKSHEET A:
worksheet a:
A B C d
1 iel01 iel02 iel03
2 igc019 5 2
3 uareit 1
4 thatsit 1 2 2
5
6

"Scire" wrote:

Need to fill a cell based on two conditions.
Compare a cell in worksheet A to column A in worksheet B, if found:
compare cell in worksheet B to row A, if found, populate orignal row
and column (from second compare) from cell xx (worksheet b).
IE: A2 (worksheet a) finds entry in column A, based on condition 1,
C1 (worksheet b) finds entry in B1 (worksheet a) populate B2
(worksheet A) with B2 (worksheet b).

ORIGNAL WORKSHEETS
RESULTING WORKSHEETS
worksheet a: worksheet b:
workheet A: A B C d A B
C A B C
1 iel01 iel02 iel03 igc019 5 iel01
iel01 iel02 iel03
2 igc019 igc019 2 iel03
igc019 5 2
3 uareit uareit 1 iel02
uareit 1
4 thatsit thatsit 1 iel01
thatsit 1 2 2
5 thatsit 2 iel02
6 thatsit 2 iel03


Thanks for any help you can provide.




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
Need help to change a cell color based on conditions Ken Excel Worksheet Functions 1 January 28th 10 09:29 AM
how to autoformat cell based on certain conditions Tiffany Excel Discussion (Misc queries) 1 January 12th 09 10:20 AM
How do I make a cell refrence another cell based on conditions? Carl Excel Worksheet Functions 1 April 27th 08 03:05 PM
Conditional formatting Based on cell A text with conditions in Cell B Raicomm Excel Discussion (Misc queries) 0 January 21st 08 04:46 PM
Value of a cell based on three conditions Rak Excel Discussion (Misc queries) 0 January 15th 08 06:17 PM


All times are GMT +1. The time now is 03:26 PM.

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"