Forum Discussion

Serdet's avatar
Serdet
Copper Contributor
Jun 11, 2021
Solved

Multiple IF formula calucation

Hi All,

 

I have a 2 datasets similar to the below.

 

Data Set 1 

PressurePlume Size

Flowrate (kg/hr)

Flowrate (T/hr)

Save Value (k$/yr)

3

0.5

 

 

 

3

1

 

 

 

3

2

 

 

 

3

3

 

 

 

3

4

 

 

 

 

Data Set 2 

Pressure

Plume Size

Flowrate (kg/hr)

Flowrate (T/hr)

Save Value (k$/yr)

3

0.5

5.2647

0.00526

0.59954

3

1

7.89706

0.0079

0.89932

3

2

33.612

0.03361

3.82773

3

3

93.2505

0.09325

10.6194

3

4

147.056

0.14706

16.7467

3

5

215.417

0.21542

24.5317

 

I will be entering data into dataset 1 (Pressure & Plume Size). I want to use dataset 2 as a look up table so if the pressure and plume size match a line in dataset 2 the other columns need to auto populate according to the match.

 

Any suggestions would be much appreciated.

 

Many thanks,

 

Elliot  

12 Replies

  • Riny_van_Eekelen's avatar
    Riny_van_Eekelen
    Platinum Contributor

    Serdet In case the suggested solution with XLOOKUP is not supported by your Excel version, the use of INDEX and MATCH is demonstrated in the attached file. I used some named ranges to make the formulae easier to write, read and maintain.

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    Serdet 

    That could be like

    =XLOOKUP(Pressure & "=" & PlumeSize,
     DataSet2Pressure & "=" & DataSet2PlumeSize,
     DataSet2FlowRate,"not found")

    in Data Set 1 FlowRate column cell, drag it to the down. Similar for other ones.

Resources