Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Multiple cond's for SUMIF or VLookup

I am attempting to gather net change info for a static list from a variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then [sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end bal]

My example is for a departmentalized trial balance where there are multiple
departments for the same account number. I do not want all data for the
group of acct numbers, they need to be distinct according to the account
number and the department. The imported trial balance will vary every month.

Any help greatly appreciated.
--
Mudshark
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,101
Default Multiple cond's for SUMIF or VLookup

=IF(Sheet1!A2=Sheet2!A2,IF(Sheet1!B2=Sheet2!B2,F2+ G2,"Not resolved"))

maybe this

"MarkS" wrote:

I am attempting to gather net change info for a static list from a variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then [sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end bal]

My example is for a departmentalized trial balance where there are multiple
departments for the same account number. I do not want all data for the
group of acct numbers, they need to be distinct according to the account
number and the department. The imported trial balance will vary every month.

Any help greatly appreciated.
--
Mudshark

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Multiple cond's for SUMIF or VLookup

Thank you, Mike. Unfortunatley it doesn't resolve the issue of testing an
array. I am also trying (without success) SumProduct variables.
--
Mudshark


"Mike" wrote:

=IF(Sheet1!A2=Sheet2!A2,IF(Sheet1!B2=Sheet2!B2,F2+ G2,"Not resolved"))

maybe this

"MarkS" wrote:

I am attempting to gather net change info for a static list from a variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then [sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end bal]

My example is for a departmentalized trial balance where there are multiple
departments for the same account number. I do not want all data for the
group of acct numbers, they need to be distinct according to the account
number and the department. The imported trial balance will vary every month.

Any help greatly appreciated.
--
Mudshark

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Multiple cond's for SUMIF or VLookup

Hi Mark
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end
bal]



With your Sheet2 being the summary and Acct# in A2 and Dept unit in B2

=SUMPRODUCT((Sheet1!$A$2:$A$1000=A2)*(Sheet1!$B$2: $B$!000=B2)*Sheet1!E2:E1000)
will give the total debit value for each dept under each Acct#

Change the E2:E1000 to other ranges to pick up other values


--
Regards

Roger Govier


"MarkS" wrote in message
...
Thank you, Mike. Unfortunatley it doesn't resolve the issue of
testing an
array. I am also trying (without success) SumProduct variables.
--
Mudshark


"Mike" wrote:

=IF(Sheet1!A2=Sheet2!A2,IF(Sheet1!B2=Sheet2!B2,F2+ G2,"Not resolved"))

maybe this

"MarkS" wrote:

I am attempting to gather net change info for a static list from a
variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then
[sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end
bal]

My example is for a departmentalized trial balance where there are
multiple
departments for the same account number. I do not want all data
for the
group of acct numbers, they need to be distinct according to the
account
number and the department. The imported trial balance will vary
every month.

Any help greatly appreciated.
--
Mudshark



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 49
Default Multiple cond's for SUMIF or VLookup

Beautiful, Roger. I've been stumped for days now.

FYI, this is what I ended up with:

=SUMPRODUCT(('[trial balance cvi.xls]Sheet 1'!$B$2:$B$1000=A139)*('[trial
balance cvi.xls]Sheet 1'!$C$2:$C$1000=B139),'[trial balance cvi.xls]Sheet
1'!$F$2:$F$1000)+SUMPRODUCT(('[trial balance cvi.xls]Sheet
1'!$B$2:$B$1000=A139)*('[trial balance cvi.xls]Sheet
1'!$C$2:$C$1000=B139),'[trial balance cvi.xls]Sheet 1'!$G$2:$G$1000)

I think my problem was understanding the "*" syntax needed. Thanks again.
--
Mudshark


"Roger Govier" wrote:

Hi Mark
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end
bal]



With your Sheet2 being the summary and Acct# in A2 and Dept unit in B2

=SUMPRODUCT((Sheet1!$A$2:$A$1000=A2)*(Sheet1!$B$2: $B$!000=B2)*Sheet1!E2:E1000)
will give the total debit value for each dept under each Acct#

Change the E2:E1000 to other ranges to pick up other values


--
Regards

Roger Govier


"MarkS" wrote in message
...
Thank you, Mike. Unfortunatley it doesn't resolve the issue of
testing an
array. I am also trying (without success) SumProduct variables.
--
Mudshark


"Mike" wrote:

=IF(Sheet1!A2=Sheet2!A2,IF(Sheet1!B2=Sheet2!B2,F2+ G2,"Not resolved"))

maybe this

"MarkS" wrote:

I am attempting to gather net change info for a static list from a
variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then
[sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end
bal]

My example is for a departmentalized trial balance where there are
multiple
departments for the same account number. I do not want all data
for the
group of acct numbers, they need to be distinct according to the
account
number and the department. The imported trial balance will vary
every month.

Any help greatly appreciated.
--
Mudshark






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Multiple cond's for SUMIF or VLookup

Hi Mark

You're very welcome. Thanks for the feedback and letting us know how you
finally solved your problem.

--
Regards

Roger Govier


"MarkS" wrote in message
...
Beautiful, Roger. I've been stumped for days now.

FYI, this is what I ended up with:

=SUMPRODUCT(('[trial balance cvi.xls]Sheet
1'!$B$2:$B$1000=A139)*('[trial
balance cvi.xls]Sheet 1'!$C$2:$C$1000=B139),'[trial balance
cvi.xls]Sheet
1'!$F$2:$F$1000)+SUMPRODUCT(('[trial balance cvi.xls]Sheet
1'!$B$2:$B$1000=A139)*('[trial balance cvi.xls]Sheet
1'!$C$2:$C$1000=B139),'[trial balance cvi.xls]Sheet 1'!$G$2:$G$1000)

I think my problem was understanding the "*" syntax needed. Thanks
again.
--
Mudshark


"Roger Govier" wrote:

Hi Mark
[acct #] [dept unit] [desc] [beg bal] [debit] [credit] [end
bal]



With your Sheet2 being the summary and Acct# in A2 and Dept unit in
B2

=SUMPRODUCT((Sheet1!$A$2:$A$1000=A2)*(Sheet1!$B$2: $B$!000=B2)*Sheet1!E2:E1000)
will give the total debit value for each dept under each Acct#

Change the E2:E1000 to other ranges to pick up other values


--
Regards

Roger Govier


"MarkS" wrote in message
...
Thank you, Mike. Unfortunatley it doesn't resolve the issue of
testing an
array. I am also trying (without success) SumProduct variables.
--
Mudshark


"Mike" wrote:

=IF(Sheet1!A2=Sheet2!A2,IF(Sheet1!B2=Sheet2!B2,F2+ G2,"Not
resolved"))

maybe this

"MarkS" wrote:

I am attempting to gather net change info for a static list from
a
variable
list of imported data.

I need to test if: sheet1A2=sheet2A2 AND sheet1b2=sheet2B2 then
[sumf2:g2
or lookupf2+lookupg2]

the basic format is:
[acct #] [dept unit] [desc] [beg bal] [debit] [credit]
[end
bal]

My example is for a departmentalized trial balance where there
are
multiple
departments for the same account number. I do not want all data
for the
group of acct numbers, they need to be distinct according to the
account
number and the department. The imported trial balance will vary
every month.

Any help greatly appreciated.
--
Mudshark






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
Vlookup on multiple worksheets? J@Y Excel Discussion (Misc queries) 13 February 17th 09 03:40 PM
vLookup with multiple lookup value in table array [email protected] Excel Worksheet Functions 2 September 26th 06 04:12 PM
Want Vlookup to list multiple items with the same key? GarToms Excel Worksheet Functions 13 May 10th 06 11:21 PM
VLOOKUP - Multiple cells in lookup value RMF Excel Worksheet Functions 1 January 23rd 06 10:28 AM
vLookup - display multiple rows Greg Excel Worksheet Functions 2 December 20th 05 03:00 PM


All times are GMT +1. The time now is 08:00 PM.

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"