def search_symbol(symbol, dict_data):
    """
    Searches for a company symbol and returns its data as a formatted string if
    found.Returns None otherwise.
    Parameters:
        (String) symbol: Company tag to be searched for.
        (dict) dict_data: Dictionary of data to be searched through.
    """
    symbol = symbol.upper()
    if symbol in dict_data:
        name = dict_data[symbol]['Name']
        last_sale = dict_data[symbol]['Last Sale']
        market_cap = dict_data[symbol]['Market Cap']
        ipo_year = dict_data[symbol]['IPO Year']
        sector = dict_data[symbol]['Sector']
        industry = dict_data[symbol]['Industry']
        return f'{symbol}, {name}, {last_sale}, {market_cap}, {ipo_year}, {sector}, {industry}'
    return None