Nested if else not working

Hello,

please check my below requirement

Merge FName and LName to Name, Phone1 will be Phone and remove Phone2 and Web column from the output, Filter data where state is ACT and NSW and write these data in a dedicated sheet, i.e, for ACT write the data in ACT sheet or sheet2 and for NSW write in sheet NSW or sheet1 visa-verse, and for rest of the data in a separate workbook.

Please note file path should be dynamic, and for name part if required it will be flexible so that whenever or wherever required we can use as per requirement.

now i have uploaded my work flow and also main excel sheet. please check the nested if else part. it is not working .please suggest if i have missed something .

thanks in advance
Excel_Excercise.zip (55.4 KB)

You can also Use Switch instead of Nested If

1 Like

thanks . can i have example or can you please apply on my workflow .

thnks in advance .

Ya sure

Excel_Excercise.zip (166.0 KB)

As per Nested If

Using Switch
Excel_Excercise (2).zip (168.3 KB)

both nested if else and switch case did not fulfil my requirement.

my requirement is

Filter data where state is ACT and NSW and write these data in a dedicated sheet, i.e, for ACT write the data in ACT sheet or sheet2 and for NSW write in sheet NSW or sheet1

and for rest of the data in a separate workbook.

Then use Filter Datatable for this i havent look your operations

it will be very nice if you give example on my workflow.

Main.xaml (61.1 KB)
TRY THIS

no . again i have to put a for each loop because i have to marge first name and last name also. and nsw will go to sheet1 and act will go to sheet2 of same work book.

Then after filter datatable u can use for eachfor other operation