Need formulas

Mustafabouhafs

New Member
Joined
Apr 14, 2020
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Need excel to automaticaly bring data from a table .. help please
 

Attachments

  • Sans titre.jpg
    Sans titre.jpg
    162.7 KB · Views: 14

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Bienvenue!

When possible, please consider using the XL2BB add-in (see the button in the reply box). This makes it so much easier for the helpers, so that they don't have to retype your picture to test with.

That said, see if this does what you want:

Book1
ABCDEFGHI
1NNationalityARRIVEDEPARTDate ArriveNationalityNew guestsRemaining guests
21TUN28-Feb1-Mar28-FebTUN10
32TUN29-Feb1-Mar29-FebTUN50
43TUN29-Feb1-Mar ALG120
54ALG29-Feb1-Mar    
65ALG29-Feb1-Mar    
76ALG29-Feb1-Mar    
87ALG29-Feb1-Mar    
98ALG29-Feb1-Mar    
109TUN29-Feb1-Mar    
1110TUN29-Feb1-Mar    
1211TUN29-Feb1-Mar    
1312ALG29-Feb1-Mar    
1413ALG29-Feb1-Mar    
1514ALG29-Feb1-Mar    
1615ALG29-Feb7-Mar    
1716ALG29-Feb1-Mar    
1817ALG29-Feb1-Mar    
1918ALG29-Feb1-Mar    
2019TUN1-Mar2-Mar1-MarTUN40
2120TUN1-Mar2-Mar ALG11
2221TUN1-Mar2-Mar    
2322TUN1-Mar2-Mar    
2423ALG1-Mar2-Mar    
2524ALG2-Mar3-Mar2-MarALG21
2625ALG2-Mar3-Mar TUN10
2726TUN2-Mar3-Mar    
28
29
30
Sheet6
Cell Formulas
RangeFormula
F2:F27F2=IF(C2<>C1,C2,"")
G2:G27G2=IF(C2<>C1,B2,IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$30)/(C$2:C$30=C2)/(MATCH(B$2:B$30&C2,B$2:B$30&C$2:C$30,0)=ROW(B$2:B$30)-ROW(B$2)+1),COUNTIF(C$2:C2,C2))),""))
H2:H27H2=IF(G2<>"",COUNTIFS(B$2:B$30,G2,C$2:C$30,C2),"")
I2:I27I2=IF(G2="","",COUNTIFS(B$2:B$30,G2,C$2:C$30,"<"&C2,D$2:D$30,">"&D2))


Change the commas in the formulas to semi-colons for your regional settings.
 
Upvote 0
Bienvenue!

When possible, please consider using the XL2BB add-in (see the button in the reply box). This makes it so much easier for the helpers, so that they don't have to retype your picture to test with.

That said, see if this does what you want:

Book1
ABCDEFGHI
1NNationalityARRIVEDEPARTDate ArriveNationalityNew guestsRemaining guests
21TUN28-Feb1-Mar28-FebTUN10
32TUN29-Feb1-Mar29-FebTUN50
43TUN29-Feb1-Mar ALG120
54ALG29-Feb1-Mar    
65ALG29-Feb1-Mar    
76ALG29-Feb1-Mar    
87ALG29-Feb1-Mar    
98ALG29-Feb1-Mar    
109TUN29-Feb1-Mar    
1110TUN29-Feb1-Mar    
1211TUN29-Feb1-Mar    
1312ALG29-Feb1-Mar    
1413ALG29-Feb1-Mar    
1514ALG29-Feb1-Mar    
1615ALG29-Feb7-Mar    
1716ALG29-Feb1-Mar    
1817ALG29-Feb1-Mar    
1918ALG29-Feb1-Mar    
2019TUN1-Mar2-Mar1-MarTUN40
2120TUN1-Mar2-Mar ALG11
2221TUN1-Mar2-Mar    
2322TUN1-Mar2-Mar    
2423ALG1-Mar2-Mar    
2524ALG2-Mar3-Mar2-MarALG21
2625ALG2-Mar3-Mar TUN10
2726TUN2-Mar3-Mar    
28
29
30
Sheet6
Cell Formulas
RangeFormula
F2:F27F2=IF(C2<>C1,C2,"")
G2:G27G2=IF(C2<>C1,B2,IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$30)/(C$2:C$30=C2)/(MATCH(B$2:B$30&C2,B$2:B$30&C$2:C$30,0)=ROW(B$2:B$30)-ROW(B$2)+1),COUNTIF(C$2:C2,C2))),""))
H2:H27H2=IF(G2<>"",COUNTIFS(B$2:B$30,G2,C$2:C$30,C2),"")
I2:I27I2=IF(G2="","",COUNTIFS(B$2:B$30,G2,C$2:C$30,"<"&C2,D$2:D$30,">"&D2))


Change the commas in the formulas to semi-colons for your regional settings.
Woow .. man
Bienvenue!

When possible, please consider using the XL2BB add-in (see the button in the reply box). This makes it so much easier for the helpers, so that they don't have to retype your picture to test with.

That said, see if this does what you want:

Book1
ABCDEFGHI
1NNationalityARRIVEDEPARTDate ArriveNationalityNew guestsRemaining guests
21TUN28-Feb1-Mar28-FebTUN10
32TUN29-Feb1-Mar29-FebTUN50
43TUN29-Feb1-Mar ALG120
54ALG29-Feb1-Mar    
65ALG29-Feb1-Mar    
76ALG29-Feb1-Mar    
87ALG29-Feb1-Mar    
98ALG29-Feb1-Mar    
109TUN29-Feb1-Mar    
1110TUN29-Feb1-Mar    
1211TUN29-Feb1-Mar    
1312ALG29-Feb1-Mar    
1413ALG29-Feb1-Mar    
1514ALG29-Feb1-Mar    
1615ALG29-Feb7-Mar    
1716ALG29-Feb1-Mar    
1817ALG29-Feb1-Mar    
1918ALG29-Feb1-Mar    
2019TUN1-Mar2-Mar1-MarTUN40
2120TUN1-Mar2-Mar ALG11
2221TUN1-Mar2-Mar    
2322TUN1-Mar2-Mar    
2423ALG1-Mar2-Mar    
2524ALG2-Mar3-Mar2-MarALG21
2625ALG2-Mar3-Mar TUN10
2726TUN2-Mar3-Mar    
28
29
30
Sheet6
Cell Formulas
RangeFormula
F2:F27F2=IF(C2<>C1,C2,"")
G2:G27G2=IF(C2<>C1,B2,IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW(B$2:B$30)/(C$2:C$30=C2)/(MATCH(B$2:B$30&C2,B$2:B$30&C$2:C$30,0)=ROW(B$2:B$30)-ROW(B$2)+1),COUNTIF(C$2:C2,C2))),""))
H2:H27H2=IF(G2<>"",COUNTIFS(B$2:B$30,G2,C$2:C$30,C2),"")
I2:I27I2=IF(G2="","",COUNTIFS(B$2:B$30,G2,C$2:C$30,"<"&C2,D$2:D$30,">"&D2))


Change the commas in the formulas to semi-colons for your regional settings.
wooow .. Man you're genius .. thats impossible .. thanks and god bless
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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
Back
Top