When leveling a caster class, the spell list puts a green color onto the spells that you could learn from a scroll instead. It checks your whole party's inventory for the presence of scrolls. But, it doesn't look inside bags.
'Say there is a chunk of meat. Pirates will have a banquet and eat it! But heroes will share it with other people. I want all the meat!!' - Luffy in One Piece