Complicated Problem Please help Collecting Data from a sheet to another

can

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi,

=IF(AND(RAW_inapp!A150=B1, RAW_inapp!D150=$A$6), RAW_inapp!C150, "Wrong")

I use this formula.

My problem is that i have to increment this by 4 so next formulas will be ;

=IF(AND(RAW_inapp!A154=B1, RAW_inapp!D154=$A$6), RAW_inapp!C154, "Wrong")
=IF(AND(RAW_inapp!A158=B1, RAW_inapp!D158=$A$6), RAW_inapp!C158, "Wrong")
=IF(AND(RAW_inapp!A162=B1, RAW_inapp!D162=$A$6), RAW_inapp!C162, "Wrong")

Is there a way to do this?

I attached the screenshots so basically, i need to chech the rawinapp sheet and if the date and the name match, i will write it to the data sheet on the correct date. The only way i found is to do it like this by incrementing by 4 the reference value since the data is autogenerated and updating every day, it will always be in the 4th place.

Please let me know if there is a better way too. Thank you.
 

Attachments

  • data.JPG
    data.JPG
    22.2 KB · Views: 0
  • Rawinapp sheet.JPG
    Rawinapp sheet.JPG
    49.9 KB · Views: 1

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,243
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
this will only check Row150 and every 4th row thereafter

=IF(AND(RAW_inapp!A150=B1, RAW_inapp!D150=$A$6,MOD(ROW(RAW_inapp!A150),4)=2), RAW_inapp!C150, "Wrong")
 

can

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
this will only check Row150 and every 4th row thereafter

=IF(AND(RAW_inapp!A150=B1, RAW_inapp!D150=$A$6,MOD(ROW(RAW_inapp!A150),4)=2), RAW_inapp!C150, "Wrong")
When i put your suggestion instead of this;
=IF(AND(RAW_inapp!A150=B1, RAW_inapp!D150=$A$6), RAW_inapp!C150, "Wrong")
It gives me the correct number however when i try to get the second one to the right it gives me error.

I put an image that show what i am trying to do. I need to fill starting with B7 to C7, D7, E7 etc. It works on B7 but when i try to autofill in C7 it wont work.

Can you help?
 

Attachments

  • Untitled-1.jpg
    Untitled-1.jpg
    157.6 KB · Views: 4

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,243
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
ok, difference approach. try this in B7, copy across (adjust ranges to suit)

=SUMPRODUCT(RAW_inapp!$C$1:$C$10000,--((RAW_inapp!$A$1:$A$10000=Sheet2!B$1)*(RAW_inapp!$D$1:$D$10000=Sheet2!$A$6)))
 

can

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

ok, difference approach. try this in B7, copy across (adjust ranges to suit)

=SUMPRODUCT(RAW_inapp!$C$1:$C$10000,--((RAW_inapp!$A$1:$A$10000=Sheet2!B$1)*(RAW_inapp!$D$1:$D$10000=Sheet2!$A$6)))
it gave me #REF!
 

can

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows
ok, difference approach. try this in B7, copy across (adjust ranges to suit)

=SUMPRODUCT(RAW_inapp!$C$1:$C$10000,--((RAW_inapp!$A$1:$A$10000=Sheet2!B$1)*(RAW_inapp!$D$1:$D$10000=Sheet2!$A$6)))
Can you reach this file? Maybe you can try this is a simple file for this try out
 

can

New Member
Joined
Dec 17, 2020
Messages
6
Office Version
  1. 365
Platform
  1. Windows

ADVERTISEMENT

Can you reach this file? Maybe you can try this is a simple file for this try out

This link will work.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
57,030
Office Version
  1. 365
Platform
  1. Windows
Try removing the ref to Sheet2 in Alan's formula
Excel Formula:
=SUMPRODUCT(RAW_inapp!$C$1:$C$10000,--((RAW_inapp!$A$1:$A$10000=B$1)*(RAW_inapp!$D$1:$D$10000=$A$6)))
 
  • Like
Reactions: can

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,243
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
it works on your test file

Test.xlsx
ABCDEFGHI
101/12/202002/12/202003/12/202004/12/202005/12/202006/12/202007/12/202008/12/2020
2
3
4
5
6Android_NewBuyer_1_2020
7Conversions10798947575111107103
Aralık 2020 New Buyer
Cell Formulas
RangeFormula
B7:I7B7=SUMPRODUCT(RAW_inapp!$C:$C,--((RAW_inapp!$A:$A=B$1)*(RAW_inapp!$D:$D=$A$6)))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B2:AF2Cell Value>=500textNO
 

AlanY

Well-known Member
Joined
Oct 30, 2014
Messages
4,243
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Try removing the ref to Sheet2 in Alan's formula
Excel Formula:
=SUMPRODUCT(RAW_inapp!$C$1:$C$10000,--((RAW_inapp!$A$1:$A$10000=B$1)*(RAW_inapp!$D$1:$D$10000=$A$6)))
thanks, just noticed that
 
  • Like
Reactions: can
Solution

Watch MrExcel Video

Forum statistics

Threads
1,130,435
Messages
5,642,093
Members
417,256
Latest member
JessAw

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
Top